diff --git a/examples/DefaultBoard/SD_Card_Stuff.ino b/examples/DefaultBoard/SD_Card_Stuff.ino index 39b92e4..4076c04 100644 --- a/examples/DefaultBoard/SD_Card_Stuff.ino +++ b/examples/DefaultBoard/SD_Card_Stuff.ino @@ -301,7 +301,7 @@ void writeCache(){ writeFooter(); } if(blockCounter == BLOCK_COUNT){ - closeSDfile(); + SDfileOpen = closeSDfile(); BLOCK_COUNT = 0; } // we did it! }