diff Discovery/Src/tMenuSystem.c @ 1037:2af07aa38531 GasConsumption

Merge with external development branches: Some features have been prepared for integration: Profiles, DMA UART on Firmware part, Bluetooth discovery and messges logging for development phase. All these new function are deactivated by compile switch and may be activated using the configuration.h for testing purpose.
author Ideenmodellierer
date Mon, 15 Sep 2025 21:12:44 +0200
parents 158100a84ebd
children 677d293c669f
line wrap: on
line diff
--- a/Discovery/Src/tMenuSystem.c	Sun Sep 07 20:44:35 2025 +0200
+++ b/Discovery/Src/tMenuSystem.c	Mon Sep 15 21:12:44 2025 +0200
@@ -145,7 +145,7 @@
         strcpy(&text[textPointer],"\n\r");
         textPointer += 2;
     }
-
+#ifdef ENABLE_SETTING_PROFILES
     if((line == 0) || (line == 2))
     {
     	textPointer += snprintf(&text[textPointer], 40,"%c%c:\t%s\n\r",TXT_2BYTE,TXT2BYTE_Profile,data->profileName[data->activeProfile]);
@@ -155,7 +155,12 @@
     	strcpy(&text[textPointer],"\n\r");
     	textPointer += 2;
     }
+#endif
+#ifdef ENABLE_SETTING_PROFILES
     if((line == 0) || (line == 3))
+#else
+    if((line == 0) || (line == 2))
+#endif
     {
         text[textPointer++] = TXT_Language;
         text[textPointer++] = '\t';
@@ -169,8 +174,11 @@
         strcpy(&text[textPointer],"\n\r");
         textPointer += 2;
     }
-
+#ifdef ENABLE_SETTING_PROFILES
     if((line == 0) || (line == 4))
+#else
+    if((line == 0) || (line == 3))
+#endif
     {
         text[textPointer++] = TXT_2BYTE;
         text[textPointer++] = TXT2BYTE_Layout;
@@ -243,7 +251,11 @@
         textPointer += 2;
     }
 
+#ifdef ENABLE_SETTING_PROFILES
     if((line == 0) || (line == 5))
+#else
+    if((line == 0) || (line == 4))
+#endif
     {
         text[textPointer++] = TXT_Information;
         text[textPointer++] = '\t';
@@ -258,7 +270,11 @@
     strcpy(&text[textPointer],"\n\r");
     textPointer += 2;
 
+#ifdef ENABLE_SETTING_PROFILES
     if((line == 0) || (line == 6))
+#else
+    if((line == 0) || (line == 5))
+#endif
     {
         text[textPointer++] = TXT_2BYTE;
         text[textPointer++] = TXT2BYTE_ResetMenu;