|
@@ -139,7 +139,7 @@ static void lcd_implementation_init()
|
139
|
139
|
u8g.drawStr(txt1X, u8g.getHeight() - DOG_CHAR_HEIGHT*3/2, STRING_SPLASH_LINE1);
|
140
|
140
|
u8g.drawStr(txt2X, u8g.getHeight() - DOG_CHAR_HEIGHT*1/2, STRING_SPLASH_LINE2);
|
141
|
141
|
#endif
|
142
|
|
- } while(u8g.nextPage());
|
|
142
|
+ } while (u8g.nextPage());
|
143
|
143
|
}
|
144
|
144
|
|
145
|
145
|
static void lcd_implementation_clear() { } // Automatically cleared by Picture Loop
|
|
@@ -222,7 +222,7 @@ static void lcd_implementation_status_screen() {
|
222
|
222
|
int per = ((fanSpeed + 1) * 100) / 256;
|
223
|
223
|
if (per) {
|
224
|
224
|
u8g.print(itostr3(per));
|
225
|
|
- u8g.print("%");
|
|
225
|
+ u8g.print('%');
|
226
|
226
|
}
|
227
|
227
|
else
|
228
|
228
|
#endif
|
|
@@ -235,7 +235,7 @@ static void lcd_implementation_status_screen() {
|
235
|
235
|
u8g.drawBox(0,29,128,10);
|
236
|
236
|
u8g.setColorIndex(0); // white on black
|
237
|
237
|
u8g.setPrintPos(2,37);
|
238
|
|
- u8g.print("X");
|
|
238
|
+ u8g.print('X');
|
239
|
239
|
u8g.drawPixel(8,33);
|
240
|
240
|
u8g.drawPixel(8,35);
|
241
|
241
|
u8g.setPrintPos(10,37);
|
|
@@ -247,7 +247,7 @@ static void lcd_implementation_status_screen() {
|
247
|
247
|
u8g.setPrintPos(51,37);
|
248
|
248
|
u8g.print(ftostr31ns(current_position[Y_AXIS]));
|
249
|
249
|
u8g.setPrintPos(83,37);
|
250
|
|
- u8g.print("Z");
|
|
250
|
+ u8g.print('Z');
|
251
|
251
|
u8g.drawPixel(89,33);
|
252
|
252
|
u8g.drawPixel(89,35);
|
253
|
253
|
u8g.setPrintPos(91,37);
|
|
@@ -285,7 +285,7 @@ static void lcd_implementation_status_screen() {
|
285
|
285
|
static void lcd_implementation_mark_as_selected(uint8_t row, bool isSelected) {
|
286
|
286
|
if (isSelected) {
|
287
|
287
|
u8g.setColorIndex(1); // black on white
|
288
|
|
- u8g.drawBox (0, row*DOG_CHAR_HEIGHT + 3, 128, DOG_CHAR_HEIGHT);
|
|
288
|
+ u8g.drawBox(0, row * DOG_CHAR_HEIGHT + 3, 128, DOG_CHAR_HEIGHT);
|
289
|
289
|
u8g.setColorIndex(0); // following text must be white on black
|
290
|
290
|
}
|
291
|
291
|
else {
|
|
@@ -322,7 +322,7 @@ static void _drawmenu_setting_edit_generic(bool isSelected, uint8_t row, const c
|
322
|
322
|
n--;
|
323
|
323
|
}
|
324
|
324
|
u8g.print(':');
|
325
|
|
- while(n--) u8g.print(' ');
|
|
325
|
+ while (n--) u8g.print(' ');
|
326
|
326
|
if (pgm) { lcd_printPGM(data); } else { u8g.print(data); }
|
327
|
327
|
}
|
328
|
328
|
|
|
@@ -396,7 +396,7 @@ static void _drawmenu_sd(bool isSelected, uint8_t row, const char* pstr, const c
|
396
|
396
|
filename++;
|
397
|
397
|
n--;
|
398
|
398
|
}
|
399
|
|
- while(n--) u8g.print(' ');
|
|
399
|
+ while (n--) u8g.print(' ');
|
400
|
400
|
}
|
401
|
401
|
|
402
|
402
|
#define lcd_implementation_drawmenu_sdfile(sel, row, pstr, filename, longFilename) _drawmenu_sd(sel, row, pstr, filename, longFilename, false)
|