diff Discovery/Src/tMenuCustom.c @ 981:c6c781a2e85b default

Merge into default
author heinrichsweikamp
date Tue, 11 Feb 2025 18:12:00 +0100
parents e9c37071933b
children d9290c76b840
line wrap: on
line diff
--- a/Discovery/Src/tMenuCustom.c	Tue Aug 13 13:24:54 2024 +0200
+++ b/Discovery/Src/tMenuCustom.c	Tue Feb 11 18:12:00 2025 +0100
@@ -118,6 +118,26 @@
 	strcpy(&text[textPointer],"\n\r");
 	textPointer += 2;
 #endif
+
+#ifdef ENABLE_GPIO_V2
+    if((line == 0) || (line == 5))
+    {
+    /* MotionCtrl */
+		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';
+    }
+
+	strcpy(&text[textPointer],"\n\r");
+	textPointer += 2;
+#endif
+
     return StMCustom;
 }