From 42f9c86327ba2019ff64eb8ccce56261ab179b75 Mon Sep 17 00:00:00 2001 From: Sergii Vozniak Date: Thu, 28 Feb 2019 17:57:52 +0200 Subject: [PATCH] Fixed type of STDIO UART initialization variable. --- targets/TARGET_Cypress/TARGET_PSOC6/serial_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/targets/TARGET_Cypress/TARGET_PSOC6/serial_api.c b/targets/TARGET_Cypress/TARGET_PSOC6/serial_api.c index 15d91cc3c3..1adfa8b438 100644 --- a/targets/TARGET_Cypress/TARGET_PSOC6/serial_api.c +++ b/targets/TARGET_Cypress/TARGET_PSOC6/serial_api.c @@ -91,7 +91,7 @@ static const cy_stc_scb_uart_config_t default_uart_config = { }; /* STDIO serial information */ -bool stdio_uart_inited = false; +int stdio_uart_inited = 0; serial_t stdio_uart; int bt_uart_inited = false; @@ -514,7 +514,7 @@ void serial_init(serial_t *obj_in, PinName tx, PinName rx) if (is_stdio) { memcpy(&stdio_uart, obj_in, sizeof(serial_t)); - stdio_uart_inited = true; + stdio_uart_inited = 1; } else if (is_bt) { memcpy(&bt_uart, obj_in, sizeof(serial_t)); bt_uart_inited = true;