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 7c9860c commit f584c6eCopy full SHA for f584c6e
logger.ino
@@ -55,14 +55,12 @@ void deleteOldLogFiles()
55
56
while ( logFiles.size() > SAVED_LOGFILES )
57
{
58
- std::list<String>::iterator thisFile;
+ std::list<String>::iterator oldestFile = logFiles.begin();
59
60
- thisFile = logFiles.begin();
61
-
62
- String filename = *thisFile;
+ String filename = *oldestFile;
63
64
SPIFFS.remove( filename.c_str() );
65
- logFiles.erase( thisFile );
+ logFiles.erase( oldestFile );
66
}
67
68
0 commit comments