Commit ddcbb315 authored by Simone Primarosa's avatar Simone Primarosa

Update encoding

Try to change you text editor as your ° will result in bad encoding warning under windows during compiling
parent 4dd5fb50
......@@ -186,11 +186,11 @@ static void lcd_implementation_init() {
// digitalWrite(17, HIGH);
#ifdef LCD_SCREEN_ROT_90
u8g.setRot90(); // Rotate screen by 90
u8g.setRot90(); // Rotate screen by 90°
#elif defined(LCD_SCREEN_ROT_180)
u8g.setRot180(); // Rotate screen by 180
u8g.setRot180(); // Rotate screen by 180°
#elif defined(LCD_SCREEN_ROT_270)
u8g.setRot270(); // Rotate screen by 270
u8g.setRot270(); // Rotate screen by 270°
#endif
// Show splashscreen
......@@ -273,9 +273,9 @@ static void lcd_implementation_status_screen() {
#if HAS_LCD_POWER_SENSOR
if (millis() < print_millis + 1000) {
uint16_t time = (millis() - print_job_start_ms) / 60000;
lcd_print(itostr2(time/60));
lcd_print(itostr2(time / 60));
lcd_print(':');
lcd_print(itostr2(time%60));
lcd_print(itostr2(time % 60));
}
else {
lcd_print(itostr4(power_consumption_hour-startpower));
......@@ -283,9 +283,9 @@ static void lcd_implementation_status_screen() {
}
#else
uint16_t time = (millis() - print_job_start_ms) / 60000;
lcd_print(itostr2(time/60));
lcd_print(itostr2(time / 60));
lcd_print(':');
lcd_print(itostr2(time%60));
lcd_print(itostr2(time % 60));
#endif
}
else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment