diff Discovery/Src/tMenuEditGasOC.c @ 735:39f48356049b

Fixed invalid setpoint (0.0) used after switch from CCR to extra (OC) gas Bugfix from mikeller
author heinrichsweikamp
date Tue, 14 Feb 2023 10:21:56 +0100
parents 01f40cb1057e
children 2c243233c999
line wrap: on
line diff
--- a/Discovery/Src/tMenuEditGasOC.c	Sun Jan 15 21:51:54 2023 +0100
+++ b/Discovery/Src/tMenuEditGasOC.c	Tue Feb 14 10:21:56 2023 +0100
@@ -345,8 +345,8 @@
         for(int i=1;i<=(2*NUM_GASES);i++)
             editGasPage.pGasLine[i].note.ub.first = 0;
 
+        tMEGas_check_switch_to_bailout();
         setActualGas_ExtraGas(&stateUsedWrite->lifeData, newOxygen, newHelium, 0);
-        tMEGas_check_switch_to_bailout();
         return EXIT_TO_HOME;
     }
     if(action == ACTION_BUTTON_NEXT)