Improve the start of the modem.
This commit is contained in:
parent
7c1fc0fbd0
commit
d94324899a
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue