diff Discovery/Src/tMenuCustom.c @ 1005:85f7e19c6688 GasConsumption

Switch menu position of Buzzer and flipdisplay option: The Buzzer is an HW option while the flipdisplay is a SW function => exchange the position in order to clean up categories.
author Ideenmodellierer
date Sat, 03 May 2025 17:47:53 +0200
parents ac25c35a3c97
children
line wrap: on
line diff
--- a/Discovery/Src/tMenuCustom.c	Sat May 03 17:45:32 2025 +0200
+++ b/Discovery/Src/tMenuCustom.c	Sat May 03 17:47:53 2025 +0200
@@ -120,18 +120,17 @@
 	textPointer += 2;
 #endif
 
-
-    if((isNewDisplay()) && ((line == 0) || (line == 5)))
+    if((line == 0) || (line == 5))
     {
-		text[textPointer++] = TXT_2BYTE;
-		text[textPointer++] = TXT2BYTE_BUZZER;
-		text[textPointer++] = ' ';
-		text[textPointer++] = TXT_Warning;
-		text[textPointer++] = '\t';
-	    if(settingsGetPointer()->warningBuzzer)
-	            text[textPointer++] = '\005';
-	        else
-	            text[textPointer++] = '\006';
+            text[textPointer++] = TXT_2BYTE;
+            text[textPointer++] = TXT2BYTE_FLIPDISPLAY;
+            text[textPointer++] = '\t';
+            if(settingsGetPointer()->FlipDisplay)
+                text[textPointer++] = '\005';
+            else
+                text[textPointer++] = '\006';
+            text[textPointer] = 0;
+
     }
 
 	strcpy(&text[textPointer],"\n\r");