diff --git a/src/lgfx/v1/platforms/esp32/common.hpp b/src/lgfx/v1/platforms/esp32/common.hpp index 53305cb1..0efdd55f 100644 --- a/src/lgfx/v1/platforms/esp32/common.hpp +++ b/src/lgfx/v1/platforms/esp32/common.hpp @@ -240,8 +240,8 @@ namespace lgfx uint32_t _gpio_pin_reg; uint32_t _gpio_func_out_reg; uint32_t _gpio_func_in_reg; - int16_t _in_func_num = -1;; - int8_t _pin_num = GPIO_NUM_NC; + int16_t _in_func_num = -1; + int8_t _pin_num = (gpio_num_t)-1; //GPIO_NUM_NC bool _gpio_enable; };