comparison 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
comparison
equal deleted inserted replaced
735:39f48356049b 736:8a2337c7af52
541 541
542 nitrogen = 100; 542 nitrogen = 100;
543 nitrogen -= oxygen; 543 nitrogen -= oxygen;
544 nitrogen -= helium; 544 nitrogen -= helium;
545 545
546 if((lifeData->actualGas.nitrogen_percentage != nitrogen) || (lifeData->actualGas.helium_percentage != helium)) 546
547 if((lifeData->actualGas.nitrogen_percentage != nitrogen) || (lifeData->actualGas.helium_percentage != helium) || (lifeData->actualGas.AppliedDiveMode != DIVEMODE_OC))
547 { 548 {
548 stateUsedWrite->events.manualGasSet = 1; 549 stateUsedWrite->events.manualGasSet = 1;
549 stateUsedWrite->events.info_manualGasSetHe = helium; 550 stateUsedWrite->events.info_manualGasSetHe = helium;
550 stateUsedWrite->events.info_manualGasSetO2 = oxygen; 551 stateUsedWrite->events.info_manualGasSetO2 = oxygen;
551 } 552 }