comparison Discovery/Src/tMenuHardware.c @ 110:cc8e24374b83 FlipDisplay

Added option to handled mirrored display to existing functions
author Ideenmodellierer
date Tue, 01 Jan 2019 21:02:17 +0100
parents 5f11787b4f42
children cc9c18075e00
comparison
equal deleted inserted replaced
109:65a6e352ce08 110:cc8e24374b83
160 "\017", 160 "\017",
161 button[3]); 161 button[3]);
162 } 162 }
163 nextline(text,&textPointer); 163 nextline(text,&textPointer);
164 164
165 if((getLicence() == LICENCEBONEX) &&((line == 0) || (line == 6))) 165 if((line == 0) || (line == 6))
166 { 166 {
167 text[textPointer++] = TXT_2BYTE; 167 if(getLicence() == LICENCEBONEX)
168 text[textPointer++] = TXT2BYTE_ScooterSetup; 168 {
169 text[textPointer++] = '\t'; 169 text[textPointer++] = TXT_2BYTE;
170 text[textPointer++] = TXT2BYTE_ScooterSetup;
171 text[textPointer++] = '\t';
170 172
171 // textPointer += snprintf(&text[textPointer],25,"D%i L%i ",settingsGetPointer()->scooterDrag, settingsGetPointer()->scooterLoad); 173 // textPointer += snprintf(&text[textPointer],25,"D%i L%i ",settingsGetPointer()->scooterDrag, settingsGetPointer()->scooterLoad);
172 textPointer += snprintf(&text[textPointer],25,"D%i L%i %i\016\016 Wh\017",settingsGetPointer()->scooterDrag, settingsGetPointer()->scooterLoad, settingsGetPointer()->scooterBattSize); 174 textPointer += snprintf(&text[textPointer],25,"D%i L%i %i\016\016 Wh\017",settingsGetPointer()->scooterDrag, settingsGetPointer()->scooterLoad, settingsGetPointer()->scooterBattSize);
173 // textPointer += bo4GetBatteryName(&text[textPointer], settingsGetPointer()->scooterBattType); 175 // textPointer += bo4GetBatteryName(&text[textPointer], settingsGetPointer()->scooterBattType);
174 nextline(text,&textPointer); 176 nextline(text,&textPointer);
177 }
178 else
179 {
180 text[textPointer++] = TXT_2BYTE;
181 text[textPointer++] = TXT2BYTE_FLIPDISPLAY;
182 text[textPointer++] = '\t';
183 if(settingsGetPointer()->FlipDisplay)
184 text[textPointer++] = '\005';
185 else
186 text[textPointer++] = '\006';
187 text[textPointer] = 0;
188 nextline(text,&textPointer);
189 }
175 } 190 }
191
176 return StMHARD; 192 return StMHARD;
177 } 193 }