Skip to content

Commit 4042bd4

Browse files
committed
Explicitly set the baud rate for the shared Serial
This helps avoiding confusion when different targets have different baud rate expectation. The EFM32GG_STK3700 target, for example, was not printing anything because of this issue.
1 parent 3229eb0 commit 4042bd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ DigitalOut led_red(LED1);
3838
DigitalOut led_green(LED2);
3939
DigitalOut led_blue(LED3);
4040

41-
Serial shared_pc(USBTX, USBRX);
41+
Serial shared_pc(USBTX, USBRX, 115200);
4242

4343
static uint32_t get_a_number()
4444
{

0 commit comments

Comments
 (0)