Mercurial > public > ostc4
comparison Discovery/Src/tMenuGas.c @ 662:1b995079c045 Betatest
PSCR Mode
author | heinrichs weikamp |
---|---|
date | Tue, 14 Dec 2021 15:36:10 +0100 |
parents | 15f6f0b5786c |
children |
comparison
equal
deleted
inserted
replaced
661:87bee7cc77b3 | 662:1b995079c045 |
---|---|
53 { | 53 { |
54 gas_mode = OCGAS_STANDARD; | 54 gas_mode = OCGAS_STANDARD; |
55 } | 55 } |
56 else | 56 else |
57 { | 57 { |
58 if (stateUsed->diveSettings.diveMode == DIVEMODE_CCR) | 58 if (isLoopMode(stateUsed->diveSettings.diveMode)) |
59 gas_mode = OCGAS_BAILOUT_INACTIVE; | 59 gas_mode = OCGAS_BAILOUT_INACTIVE; |
60 else | 60 else |
61 gas_mode = OCGAS_BAILOUT_ACTIVE; | 61 gas_mode = OCGAS_BAILOUT_ACTIVE; |
62 } | 62 } |
63 | 63 |
326 text[textPointer++] = '\n'; | 326 text[textPointer++] = '\n'; |
327 text[textPointer++] = '\r'; | 327 text[textPointer++] = '\r'; |
328 text[textPointer++] = 0; | 328 text[textPointer++] = 0; |
329 } | 329 } |
330 else /* switch to bailout selection in surface mode */ | 330 else /* switch to bailout selection in surface mode */ |
331 if((settingsGetPointer()->dive_mode == DIVEMODE_CCR) || (stateUsed->diveSettings.ccrOption == 1)) | 331 if((isLoopMode(settingsGetPointer()->dive_mode)) || (stateUsed->diveSettings.ccrOption == 1)) |
332 { | 332 { |
333 text[textPointer++] = '\024'; | 333 text[textPointer++] = '\024'; |
334 if(gasMode == CCGAS_STANDARD) | 334 if(gasMode == CCGAS_STANDARD) |
335 { | 335 { |
336 textPointer += snprintf(&text[textPointer], 14,"Bailout\n"); | 336 textPointer += snprintf(&text[textPointer], 14,"Bailout\n"); |