comparison 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
comparison
equal deleted inserted replaced
1024:9fabad6436a2 1025:6e11f7327efd
535 } 535 }
536 } 536 }
537 else 537 else
538 { 538 {
539 color = 0xff; 539 color = 0xff;
540 if((pSettings->slowExitTime != 0) && (nextstopDepthMeter == 0) && (stateUsed->lifeData.depth_meter < pSettings->last_stop_depth_meter)) 540 if((pSettings->slowExitTime != 0) && (nextstopDepthMeter == 0) && (stateUsed->lifeData.depth_meter < pSettings->last_stop_depth_meter) && (stateUsed->lifeData.depth_meter > 0.3))
541 { 541 {
542 color = t3_drawSlowExitGraph(tXscreen, tXl1, tXr1); 542 color = t3_drawSlowExitGraph(tXscreen, tXl1, tXr1);
543 } 543 }
544 if(color == 0xff) /* no slow exit => continue with common ascent graph */ 544 if(color == 0xff) /* no slow exit => continue with common ascent graph */
545 { 545 {
546 if(stateUsed->lifeData.ascent_rate_meter_per_min > 0) /* ascentrate graph -standard mode */ 546 if(stateUsed->lifeData.ascent_rate_meter_per_min > 0) /* ascent rate graph -standard mode */
547 { 547 {
548 if(!pSettings->FlipDisplay) 548 if(!pSettings->FlipDisplay)
549 { 549 {
550 start.y = tXl1->WindowY0 - 1; 550 start.y = tXl1->WindowY0 - 1;
551 } 551 }