From 2c309a8f7c511fd16a60cf9a6eab99a0f7078f6c Mon Sep 17 00:00:00 2001 From: MagoKimbra Date: Sun, 21 May 2017 19:01:44 +0200 Subject: [PATCH] Fix set_lcd_contrast --- Marlin/ultralcd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/ultralcd.cpp b/Marlin/ultralcd.cpp index 868846952..7edbdc519 100644 --- a/Marlin/ultralcd.cpp +++ b/Marlin/ultralcd.cpp @@ -4052,7 +4052,7 @@ void lcd_reset_alert_level() { lcd_status_message_level = 0; } #if HAS_LCD_CONTRAST - void set_lcd_contrast(const int value) { + void set_lcd_contrast(const uint16_t value) { lcd_contrast = constrain(value, LCD_CONTRAST_MIN, LCD_CONTRAST_MAX); u8g.setContrast(lcd_contrast); }