ensure the hotspot returns to an idle state in the instance where a host doesn't gracefully disconnect (prevents the hotspot from getting stuck Tx);

pull/4/head
Bryan Biedenkapp 2 years ago
parent 77037d132d
commit c491e9344d

@ -105,12 +105,15 @@ void IO::process()
if (m_started) {
// Two seconds timeout
if (m_watchdog >= 19200U) {
/*
if (m_modemState == STATE_DMR || m_modemState == STATE_P25) {
if (m_modemState == STATE_DMR || m_modemState == STATE_P25 || m_modemState == STATE_NXDN) {
#if defined(DUPLEX)
if (m_modemState == STATE_DMR && m_tx)
dmrTX.setStart(false);
#endif
m_modemState = STATE_IDLE;
setMode(m_modemState);
}
*/
m_watchdog = 0U;
}

@ -151,7 +151,6 @@ enum CMD_REASON_CODE {
const uint8_t DVM_FRAME_START = 0xFEU;
#define SERIAL_SPEED 115200
#define STATE_SCAN_MAX 3
// ---------------------------------------------------------------------------
// Class Declaration

Loading…
Cancel
Save

Powered by TurnKey Linux.