simplify serial print
This commit is contained in:
@@ -1317,14 +1317,9 @@ void MyMesh::checkCLIRescueCmd() {
|
|||||||
while (file) {
|
while (file) {
|
||||||
|
|
||||||
if (file.isDirectory()) {
|
if (file.isDirectory()) {
|
||||||
Serial.print("[dir] ");
|
Serial.printf("[dir] %s\n", file.name());
|
||||||
Serial.println(file.name());
|
|
||||||
} else {
|
} else {
|
||||||
Serial.print("[file] ");
|
Serial.printf("[file] %s (%d bytes)\n", file.name(), file.size());
|
||||||
Serial.print(file.name());
|
|
||||||
Serial.print(" (");
|
|
||||||
Serial.print(file.size());
|
|
||||||
Serial.println(" bytes)");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// move to next file
|
// move to next file
|
||||||
|
|||||||
Reference in New Issue
Block a user