diff Discovery/Src/tMenuEditSystem.c @ 382:14fd5f35cb50 MotionDetection

merge default
author Ideenmodellierer
date Thu, 10 Oct 2019 22:26:03 +0200
parents 0dbf550dc743 c9d217b110cc
children 427ae9f8e28e
line wrap: on
line diff
--- a/Discovery/Src/tMenuEditSystem.c	Thu Oct 10 22:11:59 2019 +0200
+++ b/Discovery/Src/tMenuEditSystem.c	Thu Oct 10 22:26:03 2019 +0200
@@ -43,10 +43,11 @@
 
 
 #define CV_SUBPAGE_MAX		(2u)	/* max number of customer view selection pages */
-/* Private variables ---------------------------------------------------------*/
+/*#define HAVE_DEBUG_VIEW */
 static uint8_t infoPage = 0;
 
 
+static uint8_t infoPage = 0;
 
 /* Private function prototypes -----------------------------------------------*/
 void openEdit_DateTime(void);
@@ -610,10 +611,14 @@
 
     write_field_button(StMSYS3_Units,			400, 700, ME_Y_LINE1,  &FontT48, "");
     write_field_button(StMSYS3_Colors,		400, 700, ME_Y_LINE2,  &FontT48, "");
-//	write_field_button(StMSYS3_Debug,			400, 700, ME_Y_LINE3,  &FontT48, "");
+#ifdef HAVE_DEBUG_VIEW
+	write_field_button(StMSYS3_Debug,			400, 700, ME_Y_LINE3,  &FontT48, "");
+#endif
     setEvent(StMSYS3_Units,		(uint32_t)OnAction_Units);
     setEvent(StMSYS3_Colors,	(uint32_t)OnAction_Colorscheme);
-//	setEvent(StMSYS3_Debug,		(uint32_t)OnAction_DebugInfo);
+#ifdef HAVE_DEBUG_VIEW
+	setEvent(StMSYS3_Debug,		(uint32_t)OnAction_DebugInfo);
+#endif
 }
 
 
@@ -654,7 +659,7 @@
     text[1] = 0;
     write_label_var( 400, 700, ME_Y_LINE2, &FontT48, text);
 
-/*
+#ifdef HAVE_DEBUG_VIEW
     // specials
     text[0] = TXT_2BYTE;
     text[1] = TXT2BYTE_ShowDebug;
@@ -667,7 +672,7 @@
         text[0] = '\006';
     text[1] = 0;
     write_label_var( 400, 700, ME_Y_LINE3, &FontT48, text);
-*/
+#endif
 
     // design
     text[0] = TXT_Depth;