comparison 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
comparison
equal deleted inserted replaced
792:25103f5c7e29 793:9da81033ad44
622 622
623 pSettings = settingsGetPointer(); 623 pSettings = settingsGetPointer();
624 pSettings->pscr_o2_drop = newO2Drop; 624 pSettings->pscr_o2_drop = newO2Drop;
625 625
626 tMenuEdit_newInput(editId, newO2Drop, 0, 0, 0); 626 tMenuEdit_newInput(editId, newO2Drop, 0, 0, 0);
627 digitContentNew = UNSPECIFIC_RETURN; 627 digitContentNew = UPDATE_DIVESETTINGS;
628 } 628 }
629 if(action == ACTION_BUTTON_NEXT) 629 if(action == ACTION_BUTTON_NEXT)
630 { 630 {
631 digitContentNew = digitContent + 1; 631 digitContentNew = digitContent + 1;
632 if(digitContentNew > '9') 632 if(digitContentNew > '9')
663 663
664 pSettings = settingsGetPointer(); 664 pSettings = settingsGetPointer();
665 pSettings->pscr_lung_ratio = newLungRatio; 665 pSettings->pscr_lung_ratio = newLungRatio;
666 666
667 tMenuEdit_newInput(editId, newLungRatio, 0, 0, 0); 667 tMenuEdit_newInput(editId, newLungRatio, 0, 0, 0);
668 digitContentNew = UNSPECIFIC_RETURN; 668 digitContentNew = UPDATE_DIVESETTINGS;
669 } 669 }
670 if(action == ACTION_BUTTON_NEXT) 670 if(action == ACTION_BUTTON_NEXT)
671 { 671 {
672 digitContentNew = digitContent + 1; 672 digitContentNew = digitContent + 1;
673 if(digitContentNew > '9') 673 if(digitContentNew > '9')