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:
- 40:e0b9755ae4f1
- Parent:
- 19:f55c7983f8ab
- Child:
- 52:27692043e962
diff -r f521eca7973d -r e0b9755ae4f1 main.cpp
--- a/main.cpp Wed Feb 01 10:45:11 2017 +0000
+++ b/main.cpp Tue Feb 07 10:15:13 2017 +0000
@@ -14,7 +14,7 @@
#include "mbed-trace/mbed_trace.h"
void trace_printer(const char* str) {
- printf("%s\r\n", str);
+ printf("%s\n", str);
}
#endif // MBED_CONF_APP_TRACE
@@ -38,8 +38,6 @@
ThreadInterface mesh;
#endif //MBED_CONF_APP_MESH_TYPE
-Serial output(USBTX, USBRX);
-
int main()
{
@@ -47,17 +45,16 @@
mbed_trace_init();
mbed_trace_print_function_set(trace_printer);
#endif
- output.baud(115200);
- printf("\r\n\r\nConnecting...\r\n");
+ printf("\n\nConnecting...\n");
mesh.initialize(&rf_phy);
if (mesh.connect()) {
- printf("Connection failed!\r\n");
+ printf("Connection failed!\n");
return -1;
}
while (NULL == mesh.get_ip_address())
Thread::wait(500);
- printf("connected. IP = %s\r\n", mesh.get_ip_address());
+ printf("connected. IP = %s\n", mesh.get_ip_address());
}