comparison Discovery/Src/t7.c @ 777:6a8cf91e5b22

This is only showing if one of the compass views is visible. It should make it possible to verify that a correct heading is set as the user can see the compass readout when pushing the button. (mikeller)
author heinrichsweikamp
date Mon, 22 May 2023 09:14:27 +0200
parents 46c6d2380d4e
children 74253a41cf80
comparison
equal deleted inserted replaced
775:46c6d2380d4e 777:6a8cf91e5b22
2797 GFX_write_string_color(&FontT48, &t7c2, TextR1, 0, CLUT_WarningYellow); 2797 GFX_write_string_color(&FontT48, &t7c2, TextR1, 0, CLUT_WarningYellow);
2798 } else if (get_globalState() == StDSETPOINT) { 2798 } else if (get_globalState() == StDSETPOINT) {
2799 snprintf(TextR1, TEXTSIZE, "\a\001 %c%c %01.2f? ", TXT_2BYTE, TXT2BYTE_SetpointShort, getSwitchToSetpointCbar() / 100.0); 2799 snprintf(TextR1, TEXTSIZE, "\a\001 %c%c %01.2f? ", TXT_2BYTE, TXT2BYTE_SetpointShort, getSwitchToSetpointCbar() / 100.0);
2800 2800
2801 GFX_write_string_color(&FontT48, &t7c2, TextR1, 0, CLUT_WarningYellow); 2801 GFX_write_string_color(&FontT48, &t7c2, TextR1, 0, CLUT_WarningYellow);
2802 }
2803 else if(get_globalState() == StDBEAR)
2804 {
2805 snprintf(TextR1, TEXTSIZE, "\a\001 %c%c? ", TXT_2BYTE, TXT2BYTE_DiveBearingQ);
2806 GFX_write_string_color(&FontT48,&t7c2,TextR1,0,CLUT_WarningYellow);
2802 } 2807 }
2803 else if(get_globalState() == StDSIM1) 2808 else if(get_globalState() == StDSIM1)
2804 { 2809 {
2805 snprintf(TextR1,TEXTSIZE,"\a\001%c%c", TXT_2BYTE, TXT2BYTE_DiveQuitQ); 2810 snprintf(TextR1,TEXTSIZE,"\a\001%c%c", TXT_2BYTE, TXT2BYTE_DiveQuitQ);
2806 GFX_write_string_color(&FontT48,&t7c2,TextR1,0,CLUT_WarningYellow); 2811 GFX_write_string_color(&FontT48,&t7c2,TextR1,0,CLUT_WarningYellow);
4479 { 4484 {
4480 GFX_graph_print(&t7screen, &wintemp, 1,1,0, 10, getChargeLog(), 60, CLUT_Font031, NULL); 4485 GFX_graph_print(&t7screen, &wintemp, 1,1,0, 10, getChargeLog(), 60, CLUT_Font031, NULL);
4481 } 4486 }
4482 4487
4483 } 4488 }
4489
4490 bool t7_isCompassShowing(void)
4491 {
4492 return selection_customview == CVIEW_Compass || selection_custom_field == LLC_Compass;
4493 }