diff --git a/uart/uart_win32.c b/uart/uart_win32.c index abc8a78ca..63f207ce9 100644 --- a/uart/uart_win32.c +++ b/uart/uart_win32.c @@ -103,8 +103,8 @@ serial_port uart_open(const char* pcPortName) { PurgeComm(sp->hPort, PURGE_RXABORT | PURGE_RXCLEAR); - bool err = uart_set_speed(sp, 460800); - if (!err) + bool success = uart_set_speed(sp, 460800); + if (!success) uart_set_speed(sp, 115200); return sp;