Skip to content

Commit

Permalink
Fix missing GIF enable macros
Browse files Browse the repository at this point in the history
  • Loading branch information
Aircoookie authored and netmindz committed Feb 22, 2025
1 parent 255be30 commit 9caa7cb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
6 changes: 5 additions & 1 deletion wled00/FX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
2 changes: 2 additions & 0 deletions wled00/FX_fcn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,9 @@ void Segment::resetIfRequired() {
needsBlank = false;
}
}
#ifndef WLED_DISABLE_GIF
endImagePlayback(this);
#endif
}

void Segment::setUpLeds() {
Expand Down

0 comments on commit 9caa7cb

Please sign in to comment.