1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-27 13:56:24 +00:00

[2.0.x] Fix compile warning (#9539)

This commit is contained in:
GMagician 2018-02-09 00:59:03 +01:00 committed by Scott Lahteine
parent b639f1ad4b
commit 9854262334

View File

@ -936,11 +936,11 @@ static void lcd_implementation_status_screen() {
const uint8_t labellen = lcd_strlen_P(pstr), const uint8_t labellen = lcd_strlen_P(pstr),
vallen = lcd_strlen(value); vallen = lcd_strlen(value);
constexpr uint8_t lcd_width_edit = (LCD_WIDTH) / (DOG_CHAR_WIDTH_EDIT);
uint8_t rows = (labellen > LCD_WIDTH - 2 - vallen) ? 2 : 1; uint8_t rows = (labellen > LCD_WIDTH - 2 - vallen) ? 2 : 1;
#if ENABLED(USE_BIG_EDIT_FONT) #if ENABLED(USE_BIG_EDIT_FONT)
constexpr uint8_t lcd_width_edit = (LCD_WIDTH) / (DOG_CHAR_WIDTH_EDIT);
uint8_t lcd_width, char_width; uint8_t lcd_width, char_width;
if (labellen <= lcd_width_edit - 1) { if (labellen <= lcd_width_edit - 1) {
if (labellen + vallen + 2 >= lcd_width_edit) rows = 2; if (labellen + vallen + 2 >= lcd_width_edit) rows = 2;