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

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