Ver código fonte

[2.0.x] Fix temperature out of LCD (#9461)

Fix bug introduced in #9415
GMagician 6 anos atrás
pai
commit
9e13d1fad5
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      Marlin/src/lcd/ultralcd_impl_DOGM.h

+ 1
- 1
Marlin/src/lcd/ultralcd_impl_DOGM.h Ver arquivo

@@ -387,7 +387,7 @@ void lcd_implementation_clear() { } // Automatically cleared by Picture Loop
387 387
 
388 388
 FORCE_INLINE void _draw_centered_temp(const int16_t temp, const uint8_t x, const uint8_t y) {
389 389
   const char * const str = itostr3(temp);
390
-  u8g.setPrintPos(x - (str[0] != ' ' ? 3 : str[1] != ' ' ? 2 : 1) * DOG_CHAR_WIDTH / 2, y);
390
+  u8g.setPrintPos(x - (str[0] != ' ' ? 0 : str[1] != ' ' ? 1 : 2) * DOG_CHAR_WIDTH / 2, y);
391 391
   lcd_print(str);
392 392
   lcd_printPGM(PSTR(LCD_STR_DEGREE " "));
393 393
 }

Carregando…
Cancelar
Salvar