fix: validation GPIO and reset wifi for arduino-esp32 core 3.x.x fixed

This commit is contained in:
Yurii
2024-06-06 16:37:57 +03:00
parent 018a1c5188
commit baf8adfb02
2 changed files with 6 additions and 4 deletions

View File

@@ -123,7 +123,9 @@
#define PROGMEM
#endif
#ifndef GPIO_IS_VALID_GPIO
#ifdef ARDUINO_ARCH_ESP32
#include <driver/gpio.h>
#elif !defined(GPIO_IS_VALID_GPIO)
#define GPIO_IS_VALID_GPIO(gpioNum) (gpioNum >= 0 && gpioNum <= 16)
#endif