diff Discovery/Src/tMenuSetpoint.c @ 650:5f0d3dce5ef4

Automatik setpoint change: In previous versions a better set point was suggested by the OSTC but had to be confirmed using the quick menu functionality. To improve usability an option has been added to the setpoint menu which allows the selection of automatically setpoint changes. If activated the OSTC will automatically switch to the setpoint in case the matching depth is passed.
author Ideenmodellierer
date Mon, 19 Apr 2021 20:19:32 +0200
parents 1f557e5f4b5a
children 1b995079c045
line wrap: on
line diff
--- a/Discovery/Src/tMenuSetpoint.c	Mon Apr 19 20:16:24 2021 +0200
+++ b/Discovery/Src/tMenuSetpoint.c	Mon Apr 19 20:19:32 2021 +0200
@@ -133,5 +133,17 @@
         text[textPointer++] = '\r';
         text[textPointer++] = 0;
     }
+    else
+    {
+        text[textPointer++] = '\020';
+        text[textPointer++] = TXT_2BYTE;
+        text[textPointer++] = TXT2BYTE_AutomaticSP;
+        text[textPointer++] = '\002';
+        if(settingsGetPointer()->autoSetpoint)
+                    text[textPointer++] = '\005';
+                else
+                    text[textPointer++] = '\006';
+        text[textPointer++] = 0;
+    }
     return StMSP;
 }