Commit 0ea78b32 authored by MagoKimbra's avatar MagoKimbra

Fix LCD Contrast

parent 8f9f6e0d
...@@ -206,7 +206,7 @@ void Config_StoreSettings() { ...@@ -206,7 +206,7 @@ void Config_StoreSettings() {
EEPROM_WRITE_VAR(i, bedKd); EEPROM_WRITE_VAR(i, bedKd);
#endif #endif
#if defined(DOGLCD) || LCD_CONTRAST < 0 #ifndef HAS_LCD_CONTRAST
const int lcd_contrast = 32; const int lcd_contrast = 32;
#endif #endif
EEPROM_WRITE_VAR(i, lcd_contrast); EEPROM_WRITE_VAR(i, lcd_contrast);
...@@ -342,7 +342,7 @@ void Config_RetrieveSettings() { ...@@ -342,7 +342,7 @@ void Config_RetrieveSettings() {
EEPROM_READ_VAR(i, bedKd); EEPROM_READ_VAR(i, bedKd);
#endif #endif
#if defined(DOGLCD) || LCD_CONTRAST < 0 #ifndef HAS_LCD_CONTRAST
int lcd_contrast; int lcd_contrast;
#endif #endif
...@@ -513,7 +513,7 @@ void Config_ResetDefault() { ...@@ -513,7 +513,7 @@ void Config_ResetDefault() {
gumPreheatFanSpeed = GUM_PREHEAT_FAN_SPEED; gumPreheatFanSpeed = GUM_PREHEAT_FAN_SPEED;
#endif #endif
#if HAS_LCD_CONTRAST #ifdef HAS_LCD_CONTRAST
lcd_contrast = DEFAULT_LCD_CONTRAST; lcd_contrast = DEFAULT_LCD_CONTRAST;
#endif //DOGLCD #endif //DOGLCD
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
void dontExpireStatus(); void dontExpireStatus();
#endif #endif
#if defined(DOGLCD) && LCD_CONTRAST >= 0 #ifdef DOGLCD
extern int lcd_contrast; extern int lcd_contrast;
void lcd_setcontrast(uint8_t value); void lcd_setcontrast(uint8_t value);
#endif #endif
......
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