comparison Discovery/Src/tMenuXtra.c @ 547:12f8745c8a94

Added viewport calibration to dive menu: To allow adjustments of the viewport during dive an option has been added to the dive menu "Xtra" including multi language strings
author Ideenmodellierer
date Mon, 02 Nov 2020 21:17:45 +0100
parents 77de014928d6
children 1b243c6c7067
comparison
equal deleted inserted replaced
546:daa8d4474ba0 547:12f8745c8a94
76 text[textPointer++] = TXT2BYTE_SetMarker; 76 text[textPointer++] = TXT2BYTE_SetMarker;
77 } 77 }
78 strcpy(&text[textPointer],"\n\r"); 78 strcpy(&text[textPointer],"\n\r");
79 textPointer += 2; 79 textPointer += 2;
80 80
81 if((line == 0) || (line == 4))
82 {
83 text[textPointer++] = TXT_2BYTE;
84 text[textPointer++] = TXT2BYTE_CalibView;
85 }
86 strcpy(&text[textPointer],"\n\r");
87 textPointer += 2;
88
81 if(is_stateUsedSetToSim()) 89 if(is_stateUsedSetToSim())
82 { 90 {
83 if((line == 0) || (line == 4)) 91 if((line == 0) || (line == 5))
84 { 92 {
85 text[textPointer++] = TXT_2BYTE; 93 text[textPointer++] = TXT_2BYTE;
86 text[textPointer++] = TXT2BYTE_SimFollowDecoStops; 94 text[textPointer++] = TXT2BYTE_SimFollowDecoStops;
87 text[textPointer++] = ' '; 95 text[textPointer++] = ' ';
88 text[textPointer++] = ' '; 96 text[textPointer++] = ' ';
94 strcpy(&text[textPointer],"\n\r"); 102 strcpy(&text[textPointer],"\n\r");
95 textPointer += 2; 103 textPointer += 2;
96 } 104 }
97 else 105 else
98 { 106 {
99 if((line == 0) || (line == 4)) /* end dive mode only used during real dives */ 107 if((line == 0) || (line == 5)) /* end dive mode only used during real dives */
100 { 108 {
101 text[textPointer++] = TXT_2BYTE; 109 text[textPointer++] = TXT_2BYTE;
102 text[textPointer++] = TXT2BYTE_EndDiveMode; 110 text[textPointer++] = TXT2BYTE_EndDiveMode;
103 } 111 }
104 strcpy(&text[textPointer],"\n\r"); 112 strcpy(&text[textPointer],"\n\r");