From f2f7e0b1e725ceaa1ab6bd4267315136c480aed1 Mon Sep 17 00:00:00 2001 From: BeeCoughs Date: Fri, 31 May 2019 12:12:48 -0400 Subject: [PATCH] Update SDfileOpen when file closes in writeCache() If the file is closed automatically from hitting the block count, update the SdfileOpen boolean --- examples/DefaultBoard/SD_Card_Stuff.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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! }