🐛 Fix TFT backlight [STM32] (#23062)

This commit is contained in:
Tanguy Pruvot
2021-11-04 18:04:04 +01:00
committed by GitHub
parent 7b79201470
commit a9dc737624
6 changed files with 22 additions and 8 deletions

View File

@@ -152,8 +152,7 @@ if (lcd_id != 0xFFFFFFFF) return;
#endif
#if PIN_EXISTS(TFT_BACKLIGHT) && ENABLED(DELAYED_BACKLIGHT_INIT)
WRITE(TFT_BACKLIGHT_PIN, HIGH);
TERN_(HAS_LCD_BRIGHTNESS, ui._set_brightness());
TERN(HAS_LCD_BRIGHTNESS, ui._set_brightness(), WRITE(TFT_BACKLIGHT_PIN, HIGH));
#endif
}