diff Discovery/Src/tMenuEditXtra.c @ 793:9da81033ad44

Bugfix PSCR Settings in Simulator Mode: The dive settings structure is not filled at the start of a simulated dive. As result changes in the PSCR parameters were used by the simulator unless the OSTC was restarted. To solve this problem the update of the dive settings have to be triggered after a parameter had been changed.
author Ideenmodellierer
date Thu, 27 Jul 2023 21:52:19 +0200
parents 45b8f3c2acce
children 4c41d9a18c7f
line wrap: on
line diff
--- a/Discovery/Src/tMenuEditXtra.c	Sat Aug 05 11:52:08 2023 +0200
+++ b/Discovery/Src/tMenuEditXtra.c	Thu Jul 27 21:52:19 2023 +0200
@@ -624,7 +624,7 @@
         pSettings->pscr_o2_drop = newO2Drop;
 
         tMenuEdit_newInput(editId, newO2Drop, 0, 0, 0);
-        digitContentNew = UNSPECIFIC_RETURN;
+        digitContentNew = UPDATE_DIVESETTINGS;
     }
     if(action == ACTION_BUTTON_NEXT)
     {
@@ -665,7 +665,7 @@
         pSettings->pscr_lung_ratio = newLungRatio;
 
         tMenuEdit_newInput(editId, newLungRatio, 0, 0, 0);
-        digitContentNew = UNSPECIFIC_RETURN;
+        digitContentNew = UPDATE_DIVESETTINGS;
     }
     if(action == ACTION_BUTTON_NEXT)
     {