comparison Discovery/Src/tMenuHardware.c @ 138:cc9c18075e00 FlipDisplay

Removed no longer supported scooter code
author Ideenmodellierer
date Sat, 23 Feb 2019 21:10:51 +0100
parents cc8e24374b83
children 5e8ad1cd353f
comparison
equal deleted inserted replaced
137:9eda5a75c5fd 138:cc9c18075e00
27 ////////////////////////////////////////////////////////////////////////////// 27 //////////////////////////////////////////////////////////////////////////////
28 28
29 /* Includes ------------------------------------------------------------------*/ 29 /* Includes ------------------------------------------------------------------*/
30 #include "tMenu.h" 30 #include "tMenu.h"
31 #include "tMenuHardware.h" 31 #include "tMenuHardware.h"
32 //#include "bonex4.h"
33 32
34 //#define NEXTLINE(text, textPointer) {text[(textPointer)++] = '\n'; text[textPointer++] = '\r'; text[textPointer] = 0;} 33 //#define NEXTLINE(text, textPointer) {text[(textPointer)++] = '\n'; text[textPointer++] = '\r'; text[textPointer] = 0;}
35 // NEXTLINE(text,textPointer); 34 // NEXTLINE(text,textPointer);
36 35
37 36
162 } 161 }
163 nextline(text,&textPointer); 162 nextline(text,&textPointer);
164 163
165 if((line == 0) || (line == 6)) 164 if((line == 0) || (line == 6))
166 { 165 {
167 if(getLicence() == LICENCEBONEX)
168 {
169 text[textPointer++] = TXT_2BYTE;
170 text[textPointer++] = TXT2BYTE_ScooterSetup;
171 text[textPointer++] = '\t';
172
173 // textPointer += snprintf(&text[textPointer],25,"D%i L%i ",settingsGetPointer()->scooterDrag, settingsGetPointer()->scooterLoad);
174 textPointer += snprintf(&text[textPointer],25,"D%i L%i %i\016\016 Wh\017",settingsGetPointer()->scooterDrag, settingsGetPointer()->scooterLoad, settingsGetPointer()->scooterBattSize);
175 // textPointer += bo4GetBatteryName(&text[textPointer], settingsGetPointer()->scooterBattType);
176 nextline(text,&textPointer);
177 }
178 else
179 {
180 text[textPointer++] = TXT_2BYTE; 166 text[textPointer++] = TXT_2BYTE;
181 text[textPointer++] = TXT2BYTE_FLIPDISPLAY; 167 text[textPointer++] = TXT2BYTE_FLIPDISPLAY;
182 text[textPointer++] = '\t'; 168 text[textPointer++] = '\t';
183 if(settingsGetPointer()->FlipDisplay) 169 if(settingsGetPointer()->FlipDisplay)
184 text[textPointer++] = '\005'; 170 text[textPointer++] = '\005';
185 else 171 else
186 text[textPointer++] = '\006'; 172 text[textPointer++] = '\006';
187 text[textPointer] = 0; 173 text[textPointer] = 0;
188 nextline(text,&textPointer); 174 nextline(text,&textPointer);
189 }
190 } 175 }
191 176
192 return StMHARD; 177 return StMHARD;
193 } 178 }