1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2026-08-18 10:22:31 +02:00

Fix boot loop

This commit is contained in:
Norbert Walter
2026-02-28 18:16:03 +00:00
parent 270642ad7c
commit b29d89525a
+2 -7
View File
@@ -83,7 +83,6 @@ GxEPD2_BW<GxEPD2_420_SE0420NQ04, GxEPD2_420_SE0420NQ04::HEIGHT> & getdisplay();
class LGFX : public lgfx::LGFX_Device { class LGFX : public lgfx::LGFX_Device {
public: public:
lgfx::Bus_SPI _bus_instance; lgfx::Bus_SPI _bus_instance;
lgfx::Light_PWM _light_instance;
LGFX(void) { LGFX(void) {
{ {
@@ -120,12 +119,8 @@ public:
cfg.bus_shared = true; cfg.bus_shared = true;
_panel_instance.config(cfg); _panel_instance.config(cfg);
} }
{ // No dedicated TFT PWM backlight pin configured on this board.
auto cfg = _light_instance.config(); // Keep backlight handling outside LovyanGFX to avoid LEDC init on invalid GPIO.
cfg.pin_bl = -1;
_light_instance.config(cfg);
_panel_instance.setLight(&_light_instance);
}
setPanel(&_panel_instance); setPanel(&_panel_instance);
} }