mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
simplify serial print
This commit is contained in:
parent
a50f89f16f
commit
28edff43fd
1 changed files with 2 additions and 7 deletions
|
|
@ -1317,14 +1317,9 @@ void MyMesh::checkCLIRescueCmd() {
|
|||
while (file) {
|
||||
|
||||
if (file.isDirectory()) {
|
||||
Serial.print("[dir] ");
|
||||
Serial.println(file.name());
|
||||
Serial.printf("[dir] %s\n", file.name());
|
||||
} else {
|
||||
Serial.print("[file] ");
|
||||
Serial.print(file.name());
|
||||
Serial.print(" (");
|
||||
Serial.print(file.size());
|
||||
Serial.println(" bytes)");
|
||||
Serial.printf("[file] %s (%d bytes)\n", file.name(), file.size());
|
||||
}
|
||||
|
||||
// move to next file
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue