Disable JSON RSSI reporting when RSSI is not being used.

This commit is contained in:
Jonathan Naylor 2023-06-19 13:58:10 +01:00
parent 678ef13754
commit 8a80d9678c
6 changed files with 18 additions and 0 deletions

View file

@ -1241,6 +1241,9 @@ void CP25Control::enable(bool enabled)
void CP25Control::writeJSONRSSI()
{
if (m_rssi == 0U)
return;
if (m_rssiCount >= RSSI_COUNT) {
nlohmann::json json;