Stop any response from any mode when not enabled.

This commit is contained in:
Jonathan Naylor
2019-01-20 17:09:40 +00:00
parent 3d164b4148
commit 0f6945ef4e
6 changed files with 33 additions and 0 deletions

View File

@@ -106,6 +106,9 @@ bool CPOCSAGControl::processData()
if (length == 0U)
return false;
if (!m_enabled)
return false;
m_ric = 0U;
m_ric |= (data[0U] << 16) & 0x00FF0000U;
m_ric |= (data[1U] << 8) & 0x0000FF00U;