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

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

No files matched your search

+3 -1
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