# HG changeset patch # User Ideenmodellierer # Date 1735748916 -3600 # Node ID d565812061f40a25c42fd73f15bf461c3bc66953 # Parent 33e24b77cc6c34f0670e182f476fe22aba94e84d 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. diff -r 33e24b77cc6c -r d565812061f4 Discovery/Src/simulation.c --- 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;