Skip to content

Commit 6f9421b

Browse files
authored
Merge pull request #5920 from bcostm/use_rawserial_in_mbed_11_test
Fix issue with MBED_11 test (mbed2)
2 parents 215a043 + 352ac7a commit 6f9421b

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)