Improve the start of the modem.

This commit is contained in:
Jonathan Naylor 2016-04-14 19:03:51 +01:00
parent 7c1fc0fbd0
commit d94324899a

View file

@ -168,10 +168,7 @@ bool CModem::open()
return false;
}
readStatus();
m_statusTimer.start();
m_inactivityTimer.start();
m_error = false;
m_offset = 0U;
@ -741,6 +738,8 @@ bool CModem::readStatus()
buffer[1U] = 3U;
buffer[2U] = MMDVM_GET_STATUS;
// CUtils::dump(1U, "Written", buffer, 3U);
return m_serial.write(buffer, 3U) == 3;
}