Skip to content

Commit 7fd1228

Browse files
committed
remove debug lines
1 parent de5ccf3 commit 7fd1228

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

cmd.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,17 @@ boolean cmdNameInit() { // seach op SPIFFS the names of the commands
4646

4747
void deleteFileLike (const char * path) { // path does not start with "/")
4848
const char * pchar;
49-
Serial.print("path="); Serial.println(path);
5049
File root = SPIFFS.open("/");
5150
if(!root){
5251
fillMsg(__SPIFFS_FAIL_TO_OPEN );
53-
Serial.println("fail to open SPIFFS");
5452
root.close() ;
5553
return;
5654
}
5755
File file = root.openNextFile();
5856
while(file){
59-
pchar = file.name() ;
60-
Serial.print("fileName=");Serial.println(pchar);
57+
pchar = file.name() ; // filename from SPIFFS starts with "/" so it is different from path
6158
if(pchar[1] == 'C' && pchar[2] == 'm' && pchar[3] == 'd' && pchar[4] == path[3] && pchar[5] == '_' ) {
6259
SPIFFS.remove(pchar ); // delete file having a name that begins with Cmdx_ (with same x)
63-
Serial.println("remove 1 file");
6460
}
6561
file = root.openNextFile();
6662
}

0 commit comments

Comments
 (0)