Merge pull request #6815 from MagoKimbra/fix_ultralcd_lcd_contrast

Fix set_lcd_contrast
This commit is contained in:
Scott Lahteine 2017-05-21 12:10:02 -05:00 committed by GitHub
commit a83f6db679

View file

@ -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);
}