Skip to content

Commit 28edff4

Browse files
committed
simplify serial print
1 parent a50f89f commit 28edff4

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

examples/companion_radio/MyMesh.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,14 +1317,9 @@ void MyMesh::checkCLIRescueCmd() {
13171317
while (file) {
13181318

13191319
if (file.isDirectory()) {
1320-
Serial.print("[dir] ");
1321-
Serial.println(file.name());
1320+
Serial.printf("[dir] %s\n", file.name());
13221321
} else {
1323-
Serial.print("[file] ");
1324-
Serial.print(file.name());
1325-
Serial.print(" (");
1326-
Serial.print(file.size());
1327-
Serial.println(" bytes)");
1322+
Serial.printf("[file] %s (%d bytes)\n", file.name(), file.size());
13281323
}
13291324

13301325
// move to next file

0 commit comments

Comments
 (0)