Fix missing GIF enable macros
This commit is contained in:
committed by
Will Tatam
parent
255be30b38
commit
9caa7cb4e9
@@ -374,7 +374,7 @@ lib_deps =
|
|||||||
https://github.com/softhack007/LITTLEFS-threadsafe.git#master
|
https://github.com/softhack007/LITTLEFS-threadsafe.git#master
|
||||||
makuna/NeoPixelBus @ 2.7.5
|
makuna/NeoPixelBus @ 2.7.5
|
||||||
;; makuna/NeoPixelBus @ 2.7.9 ;; experimental
|
;; makuna/NeoPixelBus @ 2.7.9 ;; experimental
|
||||||
https://github.com/Aircoookie/GifDecoder#e76f58f
|
https://github.com/Aircoookie/GifDecoder#bc3af18
|
||||||
${env.lib_deps}
|
${env.lib_deps}
|
||||||
|
|
||||||
;; Compatibility with upstream --> you should prefer using ${common_mm.build_flags_S} and ${common_mm.lib_deps_S}
|
;; Compatibility with upstream --> you should prefer using ${common_mm.build_flags_S} and ${common_mm.lib_deps_S}
|
||||||
|
|||||||
@@ -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
|
Draws a .gif image from filesystem on the matrix/strip
|
||||||
*/
|
*/
|
||||||
uint16_t mode_image(void) {
|
uint16_t mode_image(void) {
|
||||||
|
#ifdef WLED_DISABLE_GIF
|
||||||
|
return mode_static();
|
||||||
|
#else
|
||||||
renderImageToSegment(SEGMENT);
|
renderImageToSegment(SEGMENT);
|
||||||
|
return FRAMETIME;
|
||||||
|
#endif
|
||||||
// if (status != 0 && status != 254 && status != 255) {
|
// if (status != 0 && status != 254 && status != 255) {
|
||||||
// Serial.print("GIF renderer return: ");
|
// Serial.print("GIF renderer return: ");
|
||||||
// Serial.println(status);
|
// Serial.println(status);
|
||||||
// }
|
// }
|
||||||
return FRAMETIME;
|
|
||||||
}
|
}
|
||||||
static const char _data_FX_MODE_IMAGE[] PROGMEM = "Image@!,;;;12;sx=128";
|
static const char _data_FX_MODE_IMAGE[] PROGMEM = "Image@!,;;;12;sx=128";
|
||||||
|
|
||||||
|
|||||||
@@ -287,7 +287,9 @@ void Segment::resetIfRequired() {
|
|||||||
needsBlank = false;
|
needsBlank = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#ifndef WLED_DISABLE_GIF
|
||||||
endImagePlayback(this);
|
endImagePlayback(this);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void Segment::setUpLeds() {
|
void Segment::setUpLeds() {
|
||||||
|
|||||||
Reference in New Issue
Block a user