Skip to content

Commit 69c5404

Browse files
Sergii Vozniakcy-opm
authored andcommitted
Fixed type of STDIO UART initialization variable.
1 parent aedec74 commit 69c5404

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

targets/TARGET_Cypress/TARGET_PSOC6/serial_api.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ static const cy_stc_scb_uart_config_t default_uart_config = {
9191
};
9292

9393
/* STDIO serial information */
94-
bool stdio_uart_inited = false;
94+
int stdio_uart_inited = 0;
9595
serial_t stdio_uart;
9696

9797
int bt_uart_inited = false;
@@ -514,7 +514,7 @@ void serial_init(serial_t *obj_in, PinName tx, PinName rx)
514514

515515
if (is_stdio) {
516516
memcpy(&stdio_uart, obj_in, sizeof(serial_t));
517-
stdio_uart_inited = true;
517+
stdio_uart_inited = 1;
518518
} else if (is_bt) {
519519
memcpy(&bt_uart, obj_in, sizeof(serial_t));
520520
bt_uart_inited = true;

0 commit comments

Comments
 (0)