From 13cd6ab61a85a63cd035a748a5d9735423ec3225 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sat, 18 May 2019 21:38:21 +0200 Subject: [PATCH] add support for higher speeds. --- uart/uart_posix.c | 6 ++++++ uart/uart_win32.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/uart/uart_posix.c b/uart/uart_posix.c index 0f8e88c13..ba948132e 100644 --- a/uart/uart_posix.c +++ b/uart/uart_posix.c @@ -412,6 +412,12 @@ bool uart_set_speed(serial_port sp, const uint32_t uiPortSpeed) { stPortSpeed = B921600; break; # endif +# ifdef B1382400 + case 1382400: + stPortSpeed = B1382400; + break; +# endif + default: return false; }; diff --git a/uart/uart_win32.c b/uart/uart_win32.c index a797a7cd6..b02ddd7ef 100644 --- a/uart/uart_win32.c +++ b/uart/uart_win32.c @@ -150,6 +150,8 @@ bool uart_set_speed(serial_port sp, const uint32_t uiPortSpeed) { case 115200: case 230400: case 460800: + case 921600: + case 1382400: break; default: return false;