changeset 953:d565812061f4 Evo_2_23

Bugfix ascent graph in simulator: The ascent graph in simulator mode was not show if a depth < 5m was reached. Rootcause was a wrong source for current depth. This has be fixed now.
author Ideenmodellierer
date Wed, 01 Jan 2025 17:28:36 +0100
parents 33e24b77cc6c
children 4e4fbd73e329
files Discovery/Src/simulation.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Discovery/Src/simulation.c	Sun Dec 29 18:33:02 2024 +0100
+++ b/Discovery/Src/simulation.c	Wed Jan 01 17:28:36 2025 +0100
@@ -231,7 +231,7 @@
 
     pDiveState->lifeData.dive_time_seconds += 1;
     pDiveState->lifeData.pressure_ambient_bar = sim_get_ambient_pressure(pDiveState);
-    if(pDiveState->lifeData.pressure_ambient_bar < 1.5)
+    if(pDiveState->lifeData.depth_meter < 1.5)
     {
     	lastPressure_bar = 0;
     	pDiveState->lifeData.ascent_rate_meter_per_min = 0;