@@ -22,12 +22,13 @@
#ifdef ARDUINO_ARCH_ESP32
+#include <SPIFFS.h>
+#undef DISABLED // esp32-hal-gpio.h
+
#include "../../inc/MarlinConfigPre.h"
#if ENABLED(WEBSUPPORT)
-#include <SPIFFS.h>
-
#include "wifi.h"
AsyncEventSource events("/events"); // event source (Server-Sent events)