We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e27fe4 commit a870474Copy full SHA for a870474
1 file changed
wled00/file.cpp
@@ -38,7 +38,7 @@ void closeFile() {
38
DEBUGFS_PRINT(F("Close -> "));
39
uint32_t s = millis();
40
#endif
41
- if (f) f.close(); // only close if we have an open file
+ f.close(); // "if (f)" check is aleady done inside f.close(), and f cannot be nullptr -> no need for double checking before closing the file handle.
42
DEBUGFS_PRINTF("took %lu ms\n", millis() - s);
43
doCloseFile = false;
44
}
0 commit comments