Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 7:2df2c6e8c0df
- Parent:
- 6:c454f88524d6
- Child:
- 8:beb6c399490a
diff -r c454f88524d6 -r 2df2c6e8c0df main.cpp --- a/main.cpp Wed Jan 13 22:11:50 2016 +0000 +++ b/main.cpp Thu Jan 14 22:20:38 2016 +0000 @@ -33,11 +33,11 @@ case 'q': printf("getting status\r\n"); rn52.get(RN52_GETSTATUS, &res); - printf("%s", res.response); + printf("%s\r\n", res.response); break; case 't': rn52.get(RN52_CALLER_ID, &res); - printf("%s", res.response); + printf("%s\r\n", res.response); break; } } @@ -89,10 +89,10 @@ case RN52_TRACK_CHANGE_EVENT: cdc.reset_elapsed_time(); printf("Track change event\r\n"); - printf("title: %s", res.title); - printf("artist: %s", res.artist); - printf("album: %s", res.album); - printf("genre: %s", res.genre); + printf("title: %s\r\n", res.title); + printf("artist: %s\r\n", res.artist); + printf("album: %s\r\n", res.album); + printf("genre: %s\r\n", res.genre); printf("duration: %i\r\n", res.duration); printf("track_count: %i\r\n", res.track_count); printf("track_number: %i\r\n", res.track_number);