Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

In spitftbitmap example sketch, close SD file after use #5

Merged
merged 1 commit into from

2 participants

@wa5znu

In spitftbitmap example sketch, close SD file after use
so that people who follow the example and use copy and paste will wind
up with code that works more than once.

@wa5znu wa5znu 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.
0aa5b9b
@PaintYourDragon PaintYourDragon merged commit 05828c7 into adafruit:master
@PaintYourDragon

Thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 23, 2012
  1. @wa5znu

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

    wa5znu authored
    people who follow the example and use copy and paste will wind
    up with code that works more than once.
This page is out of date. Refresh to see the latest.
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() {
Something went wrong with that request. Please try again.