16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 04:19:19 +02:00

use uart nonblocking write

This commit is contained in:
milek7
2018-08-13 20:06:49 +02:00
parent 567dc37af4
commit 4718e62ade

View File

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