Fix model PST send data to cloud with channel

This commit is contained in:
Phat Nguyen
2024-02-17 10:45:56 +07:00
parent c9e3a2a9b4
commit e48ff0e41c

View File

@ -557,7 +557,7 @@ static void sendDataToServer(void) {
} }
} }
if (fw_mode == FW_MODE_PP || FW_MODE_PPT) { if ((fw_mode == FW_MODE_PP) || (fw_mode == FW_MODE_PPT)) {
root["pm01"] = (int)((pm01_1 + pm01_2) / 2); root["pm01"] = (int)((pm01_1 + pm01_2) / 2);
root["pm02"] = (int)((pm25_1 + pm25_2) / 2); root["pm02"] = (int)((pm25_1 + pm25_2) / 2);
root["pm003_count"] = (int)((pm03PCount_1 + pm03PCount_2) / 2); root["pm003_count"] = (int)((pm03PCount_1 + pm03PCount_2) / 2);