diff --git a/src/dev/esp8266/esp8266.cpp b/src/dev/esp8266/esp8266.cpp index 7cda5642..172a17a1 100644 --- a/src/dev/esp8266/esp8266.cpp +++ b/src/dev/esp8266/esp8266.cpp @@ -82,7 +82,7 @@ bool Esp8266Device::get_backlight_power() void Esp8266Device::update_backlight() { - if(_backlight_pin < GPIO_NUM_MAX) { + if(_backlight_pin < 17) { uint32_t duty = _backlight_power ? map(_backlight_level, 0, 255, 0, 1023) : 0; if(_backlight_invert) duty = 1023 - duty; analogWrite(_backlight_pin, duty);