Skip to content

Commit 53e616f

Browse files
committed
improvement to examples
1 parent adc6aaa commit 53e616f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/mbed5NonRtos/mbedExample.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//
22
// This is an example of using mbed 5 without RTOS support
33
// 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.
45
//
56

67
#include <TaskManagerIO.h>
@@ -13,8 +14,9 @@ Serial serPort(USBTX, USBRX);
1314
void log(const char* toLog) {
1415
char sz[14];
1516
itoa(millis(), sz, 10);
16-
serPort.write(sz, strlen(sz));
17-
serPort.write(toLog, strlen(toLog));
17+
serPort.puts(sz);
18+
serPort.puts(toLog);
19+
serPort.putc('\n');
1820
}
1921

2022
void setup() {

0 commit comments

Comments
 (0)