rename variable

This commit is contained in:
iceman1001 2017-10-10 15:01:04 +02:00
parent 7f544803e7
commit 4e728dc0f9

View file

@ -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;