From f46d93bb54ebf4775d18c599b357c43488884bbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Wed, 3 Feb 2021 15:33:45 +0100 Subject: [PATCH] uart-bridge: fix incorrect uart_parity_t usage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Álvaro Fernández Rojas --- uart-bridge.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uart-bridge.c b/uart-bridge.c index c0c8de2..8510d8e 100644 --- a/uart-bridge.c +++ b/uart-bridge.c @@ -44,7 +44,7 @@ static uint8_t USB_BUFFER[BUFFER_SIZE]; static uint32_t USB_POS = 0; static mutex_t USB_MTX; -static inline uart_parity_t databits_usb2uart(uint8_t data_bits) +static inline uint databits_usb2uart(uint8_t data_bits) { switch (data_bits) { case 5: @@ -70,7 +70,7 @@ static inline uart_parity_t parity_usb2uart(uint8_t usb_parity) } } -static inline uart_parity_t stopbits_usb2uart(uint8_t stop_bits) +static inline uint stopbits_usb2uart(uint8_t stop_bits) { switch (stop_bits) { case 2: