Skip to content

Commit 1da7f91

Browse files
committed
Make progress print on the same line.
1 parent 6186383 commit 1da7f91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ArduinoOTA/examples/BasicOTA/BasicOTA.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ void setup() {
3333
Serial.println("End");
3434
});
3535
ArduinoOTA.onProgress([](unsigned int progress, unsigned int total) {
36-
Serial.printf("Progress: %u%%\n", (progress / (total / 100)));
36+
Serial.printf("Progress: %u%%\r", (progress / (total / 100)));
3737
});
3838
ArduinoOTA.onError([](ota_error_t error) {
3939
Serial.printf("Error[%u]: ", error);

0 commit comments

Comments
 (0)