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

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