Slightly different message and adds \r to the printf for terminal programs like screen /dev/ttyACM0 which don't add <CR> automatically.

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
ChuckMcM
Date:
Sun Nov 16 06:46:27 2014 +0000
Parent:
1:e9d1c42a73ae
Commit message:
Adds \r to cover cases where auto CR is not enabled, syntax on the message to be a bit more readable.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r e9d1c42a73ae -r a361a088704a main.cpp
--- a/main.cpp	Fri Feb 28 06:52:34 2014 +0000
+++ b/main.cpp	Sun Nov 16 06:46:27 2014 +0000
@@ -11,10 +11,10 @@
  
 int main() {
   int i = 1;
-  pc.printf("Hello World !\n");
+  pc.printf("Hello World !\r\n");
   while(1) { 
       wait(1);
-      pc.printf("This program runs since %d seconds.\n", i++);
+      pc.printf("This has been running for %d seconds.\r\n", i++);
       myled = !myled;
   }
 }
diff -r e9d1c42a73ae -r a361a088704a mbed.bld
--- a/mbed.bld	Fri Feb 28 06:52:34 2014 +0000
+++ b/mbed.bld	Sun Nov 16 06:46:27 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/ed8466a608b4
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/031413cf7a89
\ No newline at end of file