#7 do some clean up stuff at the end

pull/1/head
Thomas Ballmann 4 years ago
parent c3215ab2d4
commit 22ee547b4b

@ -151,6 +151,7 @@ void jpegFlushFramebuffer()
// initialise the decoder to give access to image information
int ret = JpegDec.decodeFile("/tmp.jpeg");
if (ret == 1) {
Serial.print("decodeFile ret = ");
Serial.println(ret);
@ -158,11 +159,14 @@ void jpegFlushFramebuffer()
jpegInfo();
// render the image onto the screen at coordinate 0,0
if (JpegDec.width > 0 && JpegDec.height) {
renderJPEG(0, 0);
} else {
Serial.println("!!!! unkown jpeg format !!!!");
}
// reset decoder
JpegDec.abort();
}
}

Loading…
Cancel
Save