mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-05 14:35:31 +00:00
Stop any response from any mode when not enabled.
This commit is contained in:
parent
3d164b4148
commit
0f6945ef4e
6 changed files with 33 additions and 0 deletions
|
|
@ -87,6 +87,9 @@ bool CNXDNControl::writeModem(unsigned char *data, unsigned int len)
|
|||
{
|
||||
assert(data != NULL);
|
||||
|
||||
if (!m_enabled)
|
||||
return false;
|
||||
|
||||
unsigned char type = data[0U];
|
||||
|
||||
if (type == TAG_LOST && m_rfState == RS_RF_AUDIO) {
|
||||
|
|
@ -727,6 +730,9 @@ void CNXDNControl::writeNetwork()
|
|||
if (!exists)
|
||||
return;
|
||||
|
||||
if (!m_enabled)
|
||||
return;
|
||||
|
||||
if (m_rfState != RS_RF_LISTENING && m_netState == RS_NET_IDLE)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue