Skip to content

Commit 1413303

Browse files
committed
Only include GIF player if we have GIF support
1 parent 248e1a4 commit 1413303

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

wled00/wled_server.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@
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){

0 commit comments

Comments
 (0)