diff --git a/uart.cpp b/uart.cpp index bc84da90..878d8eb6 100644 --- a/uart.cpp +++ b/uart.cpp @@ -301,7 +301,7 @@ void uart_input::poll() WriteLog("uart: tx: " + std::string(buf)); } - ret = sp_blocking_write(port, (void*)buffer.data(), buffer.size(), 0); + ret = sp_nonblocking_write(port, (void*)buffer.data(), buffer.size()); if (ret != buffer.size()) throw std::runtime_error("uart: failed to write to port");