Skip to content

Commit

Permalink
Merge pull request #5 from wa5znu/master
Browse files Browse the repository at this point in the history
In spitftbitmap example sketch, close SD file after use
  • Loading branch information
PaintYourDragon committed Feb 23, 2012
2 parents d1ae2c3 + 0aa5b9b commit 05828c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/spitftbitmap/spitftbitmap.pde
Expand Up @@ -95,6 +95,7 @@ void setup(void) {


if (! bmpReadHeader(bmpFile)) { if (! bmpReadHeader(bmpFile)) {
Serial.println("bad bmp"); Serial.println("bad bmp");
bmpFile.close();
return; return;
} }


Expand All @@ -105,6 +106,7 @@ void setup(void) {




bmpdraw(bmpFile, 0, 0); bmpdraw(bmpFile, 0, 0);
bmpFile.close();
} }


void loop() { void loop() {
Expand Down

0 comments on commit 05828c7

Please sign in to comment.