comparison 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
comparison
equal deleted inserted replaced
1024:9fabad6436a2 1025:6e11f7327efd
2832 Gfx_colorsscheme_mod(TextL2, 0); 2832 Gfx_colorsscheme_mod(TextL2, 0);
2833 GFX_write_string(&FontT105,&t7l2,TextL2,1); 2833 GFX_write_string(&FontT105,&t7l2,TextL2,1);
2834 2834
2835 /* ascent rate graph */ 2835 /* ascent rate graph */
2836 color = 0xff; 2836 color = 0xff;
2837 if((pSettings->slowExitTime != 0) && (nextstopDepthMeter == 0) && (stateUsed->lifeData.depth_meter < pSettings->last_stop_depth_meter)) 2837 if((pSettings->slowExitTime != 0) && (nextstopDepthMeter == 0) && (stateUsed->lifeData.depth_meter < pSettings->last_stop_depth_meter) && (stateUsed->lifeData.depth_meter > 0.3))
2838 { 2838 {
2839 color = t7_drawSlowExitGraph(); 2839 color = t7_drawSlowExitGraph();
2840 } 2840 }
2841 if(color == 0xff) 2841 if(color == 0xff)
2842 { 2842 {