Revert "use uart nonblocking write"

This reverts commit 4718e62ade.
This commit is contained in:
milek7
2018-08-17 01:31:24 +02:00
parent 2c49f57809
commit e938466c90

View File

@@ -301,7 +301,7 @@ void uart_input::poll()
WriteLog("uart: tx: " + std::string(buf));
}
ret = sp_nonblocking_write(port, (void*)buffer.data(), buffer.size());
ret = sp_blocking_write(port, (void*)buffer.data(), buffer.size(), 0);
if (ret != buffer.size())
throw std::runtime_error("uart: failed to write to port");