Skip to content

Commit 352ac7a

Browse files
committed
Use RawSerial in MBED_11 test
1 parent f1cf77f commit 352ac7a

File tree

1 file changed

+2
-6
lines changed
  • features/unsupported/tests/mbed/ticker

1 file changed

+2
-6
lines changed

features/unsupported/tests/mbed/ticker/main.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
#include "mbed.h"
22
#include "test_env.h"
33

4-
void print_char(char c = '*')
5-
{
6-
printf("%c", c);
7-
fflush(stdout);
8-
}
4+
RawSerial pc(USBTX, USBRX);
95

106
Ticker flipper_1;
117
DigitalOut led1(LED1);
@@ -17,7 +13,7 @@ void flip_1() {
1713
} else {
1814
led1 = 1; led1_state = 1;
1915
}
20-
print_char();
16+
pc.putc('*');
2117
}
2218

2319
Ticker flipper_2;

0 commit comments

Comments
 (0)