changeset 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 190e5814b2f5
children 8a2337c7af52
files Discovery/Src/tMenuEditGasOC.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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)