changeset 609:1b243c6c7067

Bugfix: CalibViewport were shown even in case the compile switch had not been set: The function calibrate viewport could be selected in the dive menu. Selection had no effect but a non functional menu item might cause confusion => removment is now covered by compile switch
author Ideenmodellierer
date Thu, 14 Jan 2021 19:17:28 +0100
parents 6738028de847
children ae7f8333c900
files Discovery/Src/tMenuXtra.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Discovery/Src/tMenuXtra.c	Fri Feb 05 14:53:50 2021 +0100
+++ b/Discovery/Src/tMenuXtra.c	Thu Jan 14 19:17:28 2021 +0100
@@ -35,6 +35,7 @@
 #include "text_multilanguage.h"
 #include "data_central.h"
 #include "simulation.h"
+#include "configuration.h"
 
 /* Exported functions --------------------------------------------------------*/
 
@@ -78,6 +79,7 @@
     strcpy(&text[textPointer],"\n\r");
     textPointer += 2;
 
+#ifdef ENABLE_MOTION_CONTROL
     if((line == 0) || (line == 4))
     {
         text[textPointer++] = TXT_2BYTE;
@@ -85,6 +87,7 @@
     }
     strcpy(&text[textPointer],"\n\r");
     textPointer += 2;
+#endif
 
     if(is_stateUsedSetToSim())
     {