Permalink
Browse files

In spitftbitmap example sketch, close the SD card file, so that

people who follow the example and use copy and paste will wind
up with code that works more than once.
  • Loading branch information...
1 parent d1ae2c3 commit 0aa5b9bda2f8bfd202347f9ed218d322ef2e50c6 @wa5znu wa5znu committed Feb 23, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 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 0aa5b9b

Please sign in to comment.