We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adc6aaa commit 53e616fCopy full SHA for 53e616f
examples/mbed5NonRtos/mbedExample.cpp
@@ -1,6 +1,7 @@
1
//
2
// This is an example of using mbed 5 without RTOS support
3
// It demonstrates raising a few tasks for scheduling and an interrupt based event.
4
+// WARNING - I actually have not got a non RTOS board big enough to run this.
5
6
7
#include <TaskManagerIO.h>
@@ -13,8 +14,9 @@ Serial serPort(USBTX, USBRX);
13
14
void log(const char* toLog) {
15
char sz[14];
16
itoa(millis(), sz, 10);
- serPort.write(sz, strlen(sz));
17
- serPort.write(toLog, strlen(toLog));
+ serPort.puts(sz);
18
+ serPort.puts(toLog);
19
+ serPort.putc('\n');
20
}
21
22
void setup() {
0 commit comments