From 45c72798663c5ed7e774b9535a6d5f0c01f6610d Mon Sep 17 00:00:00 2001 From: Phat Nguyen Date: Mon, 13 May 2024 18:25:03 +0700 Subject: [PATCH] Fix: Firmware mode `O-1PP` send miss data channel-2 --- src/AgValue.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/AgValue.cpp b/src/AgValue.cpp index 4894439..9d1fd87 100644 --- a/src/AgValue.cpp +++ b/src/AgValue.cpp @@ -140,7 +140,8 @@ String Measurements::toString(bool localServer, AgFirmwareMode fwMode, int rssi, root["channels"]["1"]["rhumCompensated"] = (int)ag->pms5003t_1.humidityCompensated(this->hum_1); } - } else if (config->hasSensorPMS2) { + } + if (config->hasSensorPMS2) { root["channels"]["2"]["pm01"] = this->pm01_2; root["channels"]["2"]["pm02"] = this->pm25_2; root["channels"]["2"]["pm10"] = this->pm10_2;