# HG changeset patch # User ideenmodellierer # Date 1728833792 -7200 # Node ID 5736b2641cb0b9e8c8dac73001b30e9d8f4a7906 # Parent 0f2e5a166d4095bd000ff5c7b487adbe95cc8a66 Ascent speed display: Do not calculate speed if the diver is close to surface. diff -r 0f2e5a166d40 -r 5736b2641cb0 Small_CPU/Src/scheduler.c --- a/Small_CPU/Src/scheduler.c Thu Oct 03 20:25:49 2024 +0200 +++ b/Small_CPU/Src/scheduler.c Sun Oct 13 17:36:32 2024 +0200 @@ -1857,7 +1857,7 @@ if(lastPressure_bar >= 0) { localAscentRate = (lastPressure_bar - global.lifeData.pressure_ambient_bar) * (60000.0 / tickPressureDiff) * 10; /* bar * 10 = meter */ - if(fabs(localAscentRate) < 1.0) + if((fabs(localAscentRate) < 1.0) || (global.lifeData.pressure_ambient_bar < START_DIVE_IMMEDIATLY_BAR)) { ascentState = ASCENT_NONE; ascentStableCnt = 0;