Mercurial > public > ostc4
diff Discovery/Src/t7.c @ 773:2c243233c999
Menu shortcut for bailout / return to circuit when diving in CCR mode (mikeller)
author | heinrichsweikamp |
---|---|
date | Wed, 10 May 2023 16:24:57 +0200 |
parents | 8deb28b2d4da |
children | 46c6d2380d4e |
line wrap: on
line diff
--- a/Discovery/Src/t7.c Sat Apr 22 21:11:50 2023 -0500 +++ b/Discovery/Src/t7.c Wed May 10 16:24:57 2023 +0200 @@ -2780,6 +2780,20 @@ { snprintf(TextR1,TEXTSIZE,"\a\001%c%c", TXT_2BYTE, TXT2BYTE_DiveMenuQ); GFX_write_string_color(&FontT48,&t7c2,TextR1,0,CLUT_WarningYellow); + } else if (get_globalState() == StDBAILOUT) { + if (isLoopMode(stateUsed->diveSettings.diveMode)) { + textPointer = snprintf(TextR1, TEXTSIZE, "\a\001 %c%c ", TXT_2BYTE, TXT2BYTE_BailoutShort); + textPointer += tHome_gas_writer(stateUsed->diveSettings.gas[actualBetterBailoutGasId()].oxygen_percentage, stateUsed->diveSettings.gas[actualBetterBailoutGasId()].helium_percentage, &TextR1[textPointer]); + TextR1[textPointer++] = ' '; + TextR1[textPointer++] = '?'; + } else { + textPointer = snprintf(TextR1, TEXTSIZE, "\a\001 %c%c %01.2f/", TXT_2BYTE, TXT2BYTE_LoopShort, stateUsed->diveSettings.setpoint[actualBetterSetpointId()].setpoint_cbar / 100.0); + textPointer += tHome_gas_writer(stateUsed->diveSettings.gas[stateUsed->lifeData.lastDiluent_GasIdInSettings].oxygen_percentage, stateUsed->diveSettings.gas[stateUsed->lifeData.lastDiluent_GasIdInSettings].helium_percentage, &TextR1[textPointer]); + TextR1[textPointer++] = ' '; + TextR1[textPointer++] = '?'; + } + + GFX_write_string_color(&FontT48, &t7c2, TextR1, 0, CLUT_WarningYellow); } else if(get_globalState() == StDSIM1) {