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.
Revision 8:7594ad70d2bf, committed 2018-03-19
- Comitter:
- mbed_official
- Date:
- Mon Mar 19 14:15:18 2018 +0000
- Parent:
- 7:2fc0e8a7b6f0
- Child:
- 9:baf55b160f65
- Commit message:
- Use Serial object for trace prints
Use Serial object instead of stdout for trace prints. This is also
logical as we construct Serial object in the beginning of the source file.
Also this enables easier tracing with new targets where stdout might not
work at the beginning.
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-lorawan
Changed in this revision
| trace_helper.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/trace_helper.cpp Fri Mar 16 07:00:18 2018 +0000
+++ b/trace_helper.cpp Mon Mar 19 14:15:18 2018 +0000
@@ -77,7 +77,7 @@
*/
static void trace_printer(const char* str)
{
- printf("%s\r\n", str);
+ pc.printf("%s\r\n", str);
}
#else