Skip to content
Browse files

Merge pull request #5 from wa5znu/master

In spitftbitmap example sketch, close SD file after use
  • Loading branch information...
2 parents d1ae2c3 + 0aa5b9b commit 05828c7a6bec8af4efc72cf2ea809fecf33273db @PaintYourDragon PaintYourDragon committed Feb 23, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 examples/spitftbitmap/spitftbitmap.pde
View
2 examples/spitftbitmap/spitftbitmap.pde
@@ -95,6 +95,7 @@ void setup(void) {
if (! bmpReadHeader(bmpFile)) {
Serial.println("bad bmp");
+ bmpFile.close();
return;
}
@@ -105,6 +106,7 @@ void setup(void) {
bmpdraw(bmpFile, 0, 0);
+ bmpFile.close();
}
void loop() {

0 comments on commit 05828c7

Please sign in to comment.
Something went wrong with that request. Please try again.