diff Discovery/Src/simulation.c @ 980:7149f372b0ba Evo_2_23

Fix a couple of bugs in the scrubber timer: - double speed scrubber countdown in simulator mode - unwanted updating of last scrubber use date in simulator mode - invalid remaining scrubber display in surface mode (mikeller)
author heinrichsweikamp
date Tue, 04 Feb 2025 13:49:43 +0100 (5 weeks ago)
parents f0622dd93fdf
children 7891160acde3
line wrap: on
line diff
--- a/Discovery/Src/simulation.c	Tue Feb 04 13:48:53 2025 +0100
+++ b/Discovery/Src/simulation.c	Tue Feb 04 13:49:43 2025 +0100
@@ -254,7 +254,7 @@
     		{
     			pDiveState->scrubberDataDive[pSettings->scubberActiveId].TimerCur--;
     		}
-    		translateDate(stateUsed->lifeData.dateBinaryFormat, &stateUsedWrite->scrubberDataDive[pSettings->scubberActiveId].lastDive);
+            translateDate(stateUsed->lifeData.dateBinaryFormat, &pDiveState->scrubberDataDive[pSettings->scubberActiveId].lastDive);
     	}
     }