comparison 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
comparison
equal deleted inserted replaced
772:b7e43b28bee1 773:2c243233c999
2778 } 2778 }
2779 else if(get_globalState() == StDMENU) 2779 else if(get_globalState() == StDMENU)
2780 { 2780 {
2781 snprintf(TextR1,TEXTSIZE,"\a\001%c%c", TXT_2BYTE, TXT2BYTE_DiveMenuQ); 2781 snprintf(TextR1,TEXTSIZE,"\a\001%c%c", TXT_2BYTE, TXT2BYTE_DiveMenuQ);
2782 GFX_write_string_color(&FontT48,&t7c2,TextR1,0,CLUT_WarningYellow); 2782 GFX_write_string_color(&FontT48,&t7c2,TextR1,0,CLUT_WarningYellow);
2783 } else if (get_globalState() == StDBAILOUT) {
2784 if (isLoopMode(stateUsed->diveSettings.diveMode)) {
2785 textPointer = snprintf(TextR1, TEXTSIZE, "\a\001 %c%c ", TXT_2BYTE, TXT2BYTE_BailoutShort);
2786 textPointer += tHome_gas_writer(stateUsed->diveSettings.gas[actualBetterBailoutGasId()].oxygen_percentage, stateUsed->diveSettings.gas[actualBetterBailoutGasId()].helium_percentage, &TextR1[textPointer]);
2787 TextR1[textPointer++] = ' ';
2788 TextR1[textPointer++] = '?';
2789 } else {
2790 textPointer = snprintf(TextR1, TEXTSIZE, "\a\001 %c%c %01.2f/", TXT_2BYTE, TXT2BYTE_LoopShort, stateUsed->diveSettings.setpoint[actualBetterSetpointId()].setpoint_cbar / 100.0);
2791 textPointer += tHome_gas_writer(stateUsed->diveSettings.gas[stateUsed->lifeData.lastDiluent_GasIdInSettings].oxygen_percentage, stateUsed->diveSettings.gas[stateUsed->lifeData.lastDiluent_GasIdInSettings].helium_percentage, &TextR1[textPointer]);
2792 TextR1[textPointer++] = ' ';
2793 TextR1[textPointer++] = '?';
2794 }
2795
2796 GFX_write_string_color(&FontT48, &t7c2, TextR1, 0, CLUT_WarningYellow);
2783 } 2797 }
2784 else if(get_globalState() == StDSIM1) 2798 else if(get_globalState() == StDSIM1)
2785 { 2799 {
2786 snprintf(TextR1,TEXTSIZE,"\a\001%c%c", TXT_2BYTE, TXT2BYTE_DiveQuitQ); 2800 snprintf(TextR1,TEXTSIZE,"\a\001%c%c", TXT_2BYTE, TXT2BYTE_DiveQuitQ);
2787 GFX_write_string_color(&FontT48,&t7c2,TextR1,0,CLUT_WarningYellow); 2801 GFX_write_string_color(&FontT48,&t7c2,TextR1,0,CLUT_WarningYellow);