Mercurial > public > ostc4
comparison Discovery/Src/t3.c @ 954:4e4fbd73e329 Evo_2_23
Slow exit graph draw normal ascent if slow exit is inactive:
In previous version no graph was drawn at all if the minumum activation time (15 minutes) of the slow exit function was not reached. In the new version the normal ascent graph will be shown in case the slow exit was not activated yet.
author | Ideenmodellierer |
---|---|
date | Wed, 01 Jan 2025 17:30:50 +0100 |
parents | e9c37071933b |
children |
comparison
equal
deleted
inserted
replaced
953:d565812061f4 | 954:4e4fbd73e329 |
---|---|
533 GFX_draw_thick_line(12,tXscreen, start, stop, color); | 533 GFX_draw_thick_line(12,tXscreen, start, stop, color); |
534 } | 534 } |
535 } | 535 } |
536 else | 536 else |
537 { | 537 { |
538 color = 0xff; | |
538 if((pSettings->slowExitTime != 0) && (nextstopDepthMeter == 0) && (stateUsed->lifeData.depth_meter < pSettings->last_stop_depth_meter)) | 539 if((pSettings->slowExitTime != 0) && (nextstopDepthMeter == 0) && (stateUsed->lifeData.depth_meter < pSettings->last_stop_depth_meter)) |
539 { | 540 { |
540 color = t3_drawSlowExitGraph(tXscreen, tXl1, tXr1); | 541 color = t3_drawSlowExitGraph(tXscreen, tXl1, tXr1); |
541 } | 542 } |
542 else | 543 if(color == 0xff) /* no slow exit => continue with common ascent graph */ |
543 { | 544 { |
544 if(stateUsed->lifeData.ascent_rate_meter_per_min > 0) /* ascentrate graph -standard mode */ | 545 if(stateUsed->lifeData.ascent_rate_meter_per_min > 0) /* ascentrate graph -standard mode */ |
545 { | 546 { |
546 if(!pSettings->FlipDisplay) | 547 if(!pSettings->FlipDisplay) |
547 { | 548 { |
2232 | 2233 |
2233 start.y = start.y - (stateUsed->lifeData.depth_meter * (ASCENT_GRAPH_YPIXEL) / pSettings->last_stop_depth_meter); | 2234 start.y = start.y - (stateUsed->lifeData.depth_meter * (ASCENT_GRAPH_YPIXEL) / pSettings->last_stop_depth_meter); |
2234 stop.y = start.y; | 2235 stop.y = start.y; |
2235 GFX_draw_thick_line(10,tXscreen, start, stop, 9); | 2236 GFX_draw_thick_line(10,tXscreen, start, stop, 9); |
2236 } | 2237 } |
2238 else | |
2239 { | |
2240 color = 0xff; | |
2241 } | |
2237 return color; | 2242 return color; |
2238 } | 2243 } |