Fixes for OSX serial writing.

This commit is contained in:
Jonathan Naylor
2017-11-15 11:10:12 +00:00
parent 711bcbf745
commit 6860aed85b
3 changed files with 73 additions and 5 deletions

View File

@@ -906,6 +906,10 @@ bool CModem::readVersion()
if (ret != 3)
return false;
#if defined(__APPLE__)
m_serial.setNonblock(true);
#endif
for (unsigned int count = 0U; count < MAX_RESPONSES; count++) {
CThread::sleep(10U);
RESP_TYPE_MMDVM resp = getResponse();