mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 23:45:49 +08:00
Improve the start of the modem.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user