File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 99#ifdef WLED_ENABLE_PIXART
1010 #include " html_pixart.h"
1111#endif
12- #ifndef WLED_DISABLE_GIFPLAYER
13- #include " html_gifplayer.h"
12+ #ifdef WLED_ENABLE_GIF
13+ #ifndef WLED_DISABLE_GIFPLAYER
14+ #include " html_gifplayer.h"
15+ #endif
1416#endif
1517#include " html_cpal.h"
1618
@@ -413,7 +415,8 @@ void initServer()
413415 });
414416 #endif
415417
416- #ifndef WLED_DISABLE_GIFPLAYER
418+ #ifdef WLED_ENABLE_GIF
419+ #ifndef WLED_DISABLE_GIFPLAYER
417420 static const char _gifplayer_htm[] PROGMEM = " /gifplayer.htm" ;
418421 server.on (_gifplayer_htm, HTTP_GET, [](AsyncWebServerRequest *request) {
419422 if (handleFileRead (request, _gifplayer_htm)) return ;
@@ -423,6 +426,7 @@ void initServer()
423426 setStaticContentCacheHeaders (response);
424427 request->send (response);
425428 });
429+ #endif
426430#endif
427431
428432 server.on (" /cpal.htm" , HTTP_GET, [](AsyncWebServerRequest *request){
You can’t perform that action at this time.
0 commit comments