diff Discovery/Src/t7.c @ 1025:6e11f7327efd GasConsumption

Hide slow exit graph if close to surface: In the previous version the slow exit graph was draw even if the diver is on surface. To avoid this the drawing is now stopped below a depth of 30cm.
author Ideenmodellierer
date Sat, 30 Aug 2025 12:52:52 +0200
parents 8c0134a287da
children 677d293c669f
line wrap: on
line diff
--- a/Discovery/Src/t7.c	Tue Jul 29 17:15:35 2025 +0200
+++ b/Discovery/Src/t7.c	Sat Aug 30 12:52:52 2025 +0200
@@ -2834,7 +2834,7 @@
 
 /* ascent rate graph */
     color = 0xff;
-    if((pSettings->slowExitTime != 0) && (nextstopDepthMeter == 0) && (stateUsed->lifeData.depth_meter < pSettings->last_stop_depth_meter))
+    if((pSettings->slowExitTime != 0) && (nextstopDepthMeter == 0) && (stateUsed->lifeData.depth_meter < pSettings->last_stop_depth_meter) && (stateUsed->lifeData.depth_meter > 0.3))
     {
     	color = t7_drawSlowExitGraph();
     }