comparison Discovery/Src/t3.c @ 613:beeb23d18443

Added "Set Marker" to T3 quick menu: It is now possible to set a marker while in T?_Profile view using the quick menu access. Because the the string, which is used in the dive menu, is to long, a shorter string had to be added.
author Ideenmodellierer
date Fri, 15 Jan 2021 21:33:07 +0100
parents ae7f8333c900
children 8fa2de4414a8
comparison
equal deleted inserted replaced
612:82d58470fd94 613:beeb23d18443
658 text[textPointer++] = '?'; 658 text[textPointer++] = '?';
659 text[textPointer++] = ' '; 659 text[textPointer++] = ' ';
660 text[textPointer++] = 0; 660 text[textPointer++] = 0;
661 GFX_write_string_color(&FontT42,tXr1,text,1,CLUT_WarningYellow); 661 GFX_write_string_color(&FontT42,tXr1,text,1,CLUT_WarningYellow);
662 break; 662 break;
663
664 case StDMARK: snprintf(text,TEXTSIZE,"\a\003\001%c%c", TXT_2BYTE, TXT2BYTE_SetMarkerShort);
665 GFX_write_string_color(&FontT42,tXr1,text,1,CLUT_WarningYellow);
666 break;
667
663 default: /* show divetime */ 668 default: /* show divetime */
664 669
665 Divetime.Total = stateUsed->lifeData.dive_time_seconds_without_surface_time; 670 Divetime.Total = stateUsed->lifeData.dive_time_seconds_without_surface_time;
666 Divetime.Minutes = Divetime.Total / 60; 671 Divetime.Minutes = Divetime.Total / 60;
667 Divetime.Seconds = Divetime.Total - ( Divetime.Minutes * 60 ); 672 Divetime.Seconds = Divetime.Total - ( Divetime.Minutes * 60 );