comparison Discovery/Src/tMenuEditGasOC.c @ 662:1b995079c045 Betatest

PSCR Mode
author heinrichs weikamp
date Tue, 14 Dec 2021 15:36:10 +0100
parents 15f6f0b5786c
children 8775d3dc6325
comparison
equal deleted inserted replaced
661:87bee7cc77b3 662:1b995079c045
90 { 90 {
91 if(actual_menu_content == MENU_SURFACE) 91 if(actual_menu_content == MENU_SURFACE)
92 { 92 {
93 if(line == 6) 93 if(line == 6)
94 { 94 {
95 if((settingsGetPointer()->dive_mode == DIVEMODE_CCR) || (stateUsed->diveSettings.ccrOption == 1)) 95 if(isLoopMode(settingsGetPointer()->dive_mode) || (stateUsed->diveSettings.ccrOption == 1))
96 { 96 {
97 selectPage(StMOG); 97 selectPage(StMOG);
98 } 98 }
99 } 99 }
100 else 100 else
120 { 120 {
121 if(actual_menu_content == MENU_SURFACE) 121 if(actual_menu_content == MENU_SURFACE)
122 { 122 {
123 if(line == 6) 123 if(line == 6)
124 { 124 {
125 if((settingsGetPointer()->dive_mode == DIVEMODE_CCR) || (stateUsed->diveSettings.ccrOption == 1)) 125 if(isLoopMode(settingsGetPointer()->dive_mode) || (stateUsed->diveSettings.ccrOption == 1))
126 { 126 {
127 selectPage(StMCG); 127 selectPage(StMCG);
128 } 128 }
129 } 129 }
130 else 130 else
365 } 365 }
366 366
367 367
368 void tMEGas_check_switch_to_bailout(void) 368 void tMEGas_check_switch_to_bailout(void)
369 { 369 {
370 if(stateUsed->diveSettings.diveMode == DIVEMODE_CCR) 370 if(isLoopMode(stateUsed->diveSettings.diveMode))
371 { 371 {
372 stateUsedWrite->diveSettings.diveMode = DIVEMODE_OC; 372 stateUsedWrite->diveSettings.diveMode = DIVEMODE_OC;
373 block_diluent_page(); 373 block_diluent_page();
374 } 374 }
375 } 375 }