mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-05 14:35:31 +00:00
Fixes for OSX serial writing.
This commit is contained in:
parent
711bcbf745
commit
6860aed85b
3 changed files with 73 additions and 5 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue