diff --git a/platformio.ini b/platformio.ini index 5d723c16..df6b93a0 100644 --- a/platformio.ini +++ b/platformio.ini @@ -374,7 +374,7 @@ lib_deps = https://github.com/softhack007/LITTLEFS-threadsafe.git#master makuna/NeoPixelBus @ 2.7.5 ;; makuna/NeoPixelBus @ 2.7.9 ;; experimental - https://github.com/Aircoookie/GifDecoder#e76f58f + https://github.com/Aircoookie/GifDecoder#bc3af18 ${env.lib_deps} ;; Compatibility with upstream --> you should prefer using ${common_mm.build_flags_S} and ${common_mm.lib_deps_S} diff --git a/wled00/FX.cpp b/wled00/FX.cpp index e556d772..56499d8e 100644 --- a/wled00/FX.cpp +++ b/wled00/FX.cpp @@ -4655,12 +4655,16 @@ static const char _data_FX_MODE_WASHING_MACHINE[] PROGMEM = "Washing Machine@!,! Draws a .gif image from filesystem on the matrix/strip */ uint16_t mode_image(void) { + #ifdef WLED_DISABLE_GIF + return mode_static(); + #else renderImageToSegment(SEGMENT); + return FRAMETIME; + #endif // if (status != 0 && status != 254 && status != 255) { // Serial.print("GIF renderer return: "); // Serial.println(status); // } - return FRAMETIME; } static const char _data_FX_MODE_IMAGE[] PROGMEM = "Image@!,;;;12;sx=128"; diff --git a/wled00/FX_fcn.cpp b/wled00/FX_fcn.cpp index ef4b51e9..545d69cf 100644 --- a/wled00/FX_fcn.cpp +++ b/wled00/FX_fcn.cpp @@ -287,7 +287,9 @@ void Segment::resetIfRequired() { needsBlank = false; } } + #ifndef WLED_DISABLE_GIF endImagePlayback(this); + #endif } void Segment::setUpLeds() {