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

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