diff Discovery/Src/data_central.c @ 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 6f5a18bb25be
children 29d9b5bc7946
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;