Skip to content

Commit

Permalink
Proper debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Aircoookie committed Apr 13, 2024
1 parent 3aca770 commit 028b77d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wled00/image_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ byte renderImageToSegment(Segment &seg) {
decoder.setFileReadBlockCallback(fileReadBlockCallback);
decoder.setFileSizeCallback(fileSizeCallback);
decoder.alloc();
Serial.println("Starting decoding");
DEBUG_PRINTLN(F("Starting decoding"));
if(decoder.startDecoding() < 0) { gifDecodeFailed = true; return IMAGE_ERROR_GIF_DECODE; }
Serial.println("Decoding started");
DEBUG_PRINTLN(F("Decoding started"));
}

if (gifDecodeFailed) return IMAGE_ERROR_PREV;
Expand Down Expand Up @@ -131,14 +131,14 @@ byte renderImageToSegment(Segment &seg) {
}

void endImagePlayback(Segment *seg) {
Serial.println("Image playback end called");
DEBUG_PRINTLN(F("Image playback end called"));
if (!activeSeg || activeSeg != seg) return;
if (file) file.close();
decoder.dealloc();
gifDecodeFailed = false;
activeSeg = nullptr;
lastFilename[1] = '\0';
Serial.println("Image playback ended");
DEBUG_PRINTLN(F("Image playback ended"));
}

#endif

0 comments on commit 028b77d

Please sign in to comment.