changeset 736:8a2337c7af52

Fixed logbook download after switch from CCR to extra (OC) gas if the extra gas was the same as the active diluent Bugfix from mikeller
author heinrichsweikamp
date Fri, 03 Mar 2023 10:41:44 +0100
parents 39f48356049b
children 5071d554aaa5
files Discovery/Src/data_central.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Discovery/Src/data_central.c	Tue Feb 14 10:21:56 2023 +0100
+++ b/Discovery/Src/data_central.c	Fri Mar 03 10:41:44 2023 +0100
@@ -543,7 +543,8 @@
 	nitrogen -= oxygen;
 	nitrogen -= helium;
 
-    if((lifeData->actualGas.nitrogen_percentage != nitrogen) || (lifeData->actualGas.helium_percentage != helium))
+
+	if((lifeData->actualGas.nitrogen_percentage != nitrogen) || (lifeData->actualGas.helium_percentage != helium) || (lifeData->actualGas.AppliedDiveMode != DIVEMODE_OC))
     {
     	stateUsedWrite->events.manualGasSet = 1;
     	stateUsedWrite->events.info_manualGasSetHe = helium;