Enable pxmagic by default

This commit is contained in:
Christian Schwinne 2023-06-22 11:18:58 +02:00
parent 0d287283d4
commit 94aeb19245

View File

@ -9,7 +9,7 @@
#ifdef WLED_ENABLE_PIXART #ifdef WLED_ENABLE_PIXART
#include "html_pixart.h" #include "html_pixart.h"
#endif #endif
#ifdef WLED_ENABLE_PXMAGIC #ifndef WLED_DISABLE_PXMAGIC
#include "html_pxmagic.h" #include "html_pxmagic.h"
#endif #endif
#include "html_cpal.h" #include "html_cpal.h"
@ -370,7 +370,7 @@ void initServer()
}); });
#endif #endif
#ifdef WLED_ENABLE_PXMAGIC #ifndef WLED_DISABLE_PXMAGIC
server.on("/pxmagic.htm", HTTP_GET, [](AsyncWebServerRequest *request){ server.on("/pxmagic.htm", HTTP_GET, [](AsyncWebServerRequest *request){
if (handleFileRead(request, "/pxmagic.htm")) return; if (handleFileRead(request, "/pxmagic.htm")) return;
if (handleIfNoneMatchCacheHeader(request)) return; if (handleIfNoneMatchCacheHeader(request)) return;