comparison Common/Inc/data_central.h @ 271:1303747b5ba2 write-from-sim

cleanup: also write gas and setpoint changes in simulator mode This is related to the previous commit. There is all kinds of logic around that distinguishes real diving mode and simulator mode. This is valid in certain cases. For example, we do not want a simulator session to act as a repetitive dive for subsequent real dives. What is simply wrong, is skipping relevant logic, like gas switches to act differently in the simulator and in a real dive. The main advantage of this commit is code simplicity. Normal users will never see the difference, as simulator dives are not logged (unless compiled in by a developer). Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
author Jan Mulder <jlmulder@xs4all.nl>
date Sat, 27 Apr 2019 09:32:16 +0200
parents 2e58a4094770
children 54d14bc2083c
comparison
equal deleted inserted replaced
270:2e58a4094770 271:1303747b5ba2
392 } bit8_Type; 392 } bit8_Type;
393 393
394 extern SDiveState stateSim; 394 extern SDiveState stateSim;
395 extern SDiveState stateDeco; 395 extern SDiveState stateDeco;
396 extern uint8_t decoLock; 396 extern uint8_t decoLock;
397 extern const SDiveState * stateUsed; 397 extern const SDiveState *stateUsed;
398 398 extern SDiveState *stateUsedWrite;
399 399
400 enum DECO_LOCK{ 400 enum DECO_LOCK{
401 DECO_CALC_running, 401 DECO_CALC_running,
402 DECO_CALC_ready, 402 DECO_CALC_ready,
403 DECO_CALC_FINSHED_Buehlmann, 403 DECO_CALC_FINSHED_Buehlmann,