diff Discovery/Src/t7.c @ 775:46c6d2380d4e

Add a shortcuts to change the setpoint to the loop to the 'normal' display when diving. It is only shown when diving in CCR mode and on the loop. Uses the configured setpoint with the highest / lowest switch depth as the high / low setpoints respectively. (mikeller)
author heinrichsweikamp
date Thu, 11 May 2023 12:13:03 +0200
parents 2c243233c999
children 45b8f3c2acce 6a8cf91e5b22
line wrap: on
line diff
--- a/Discovery/Src/t7.c	Wed May 10 16:25:39 2023 +0200
+++ b/Discovery/Src/t7.c	Thu May 11 12:13:03 2023 +0200
@@ -46,6 +46,7 @@
 #include "motion.h"
 #include "configuration.h"
 #include "base.h"
+#include "tMenuEditSetpoint.h"
 
 /* Private function prototypes -----------------------------------------------*/
 
@@ -2794,6 +2795,10 @@
         }
 
         GFX_write_string_color(&FontT48, &t7c2, TextR1, 0, CLUT_WarningYellow);
+    } else if (get_globalState() == StDSETPOINT) {
+        snprintf(TextR1, TEXTSIZE, "\a\001 %c%c %01.2f? ", TXT_2BYTE, TXT2BYTE_SetpointShort, getSwitchToSetpointCbar() / 100.0);
+
+        GFX_write_string_color(&FontT48, &t7c2, TextR1, 0, CLUT_WarningYellow);
     }
     else if(get_globalState() == StDSIM1)
     {