[fix] build fail on example BASIC

This commit is contained in:
Phat Nguyen committed 2024-06-18 19:59:29 +07:00
1 parent bd237ed95d
commit a11eaea532
8 files changed
+23 -43

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ String Measurements::toString(bool localServer, AgFirmwareMode fwMode, int rssi,
}
if (ag->isOne() || (ag->getBoardType() == DIY_PRO_INDOOR_V4_2)) {
if (config->hasSensorPMS1 || config->hasSensorPMS) {
if (config->hasSensorPMS1) {
if (this->pm01_1 >= 0) {
root["pm01"] = this->pm01_1;
}