Mercurial > public > ostc4
diff Discovery/Src/t3.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 |
line wrap: on
line diff
--- a/Discovery/Src/t3.c Tue Jul 29 17:15:35 2025 +0200 +++ b/Discovery/Src/t3.c Sat Aug 30 12:52:52 2025 +0200 @@ -537,13 +537,13 @@ else { 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 = t3_drawSlowExitGraph(tXscreen, tXl1, tXr1); } if(color == 0xff) /* no slow exit => continue with common ascent graph */ { - if(stateUsed->lifeData.ascent_rate_meter_per_min > 0) /* ascentrate graph -standard mode */ + if(stateUsed->lifeData.ascent_rate_meter_per_min > 0) /* ascent rate graph -standard mode */ { if(!pSettings->FlipDisplay) {
