Return and new line

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
miceviki
Date:
Fri Jan 19 11:27:56 2018 +0000
Parent:
1:ce08f1d8140c
Commit message:
Return and new line

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r ce08f1d8140c -r b916eb6c8dcc main.cpp
--- a/main.cpp	Sat Jul 08 05:01:19 2017 +0000
+++ b/main.cpp	Fri Jan 19 11:27:56 2018 +0000
@@ -31,6 +31,6 @@
     while(1) {
         wait(1); // 1 second
         led = !led; // Toggle LED
-        printf("This program runs since %d seconds.\n", i++);
+        printf("This program runs since %d seconds.\r\n", i++);
     }
 }