From e461b92c9fe6457e07bbb1bff83048eab74c5bd8 Mon Sep 17 00:00:00 2001 From: Phat Nguyen Date: Sun, 25 Aug 2024 20:51:07 +0700 Subject: [PATCH] Fix build failed --- examples/DiyProIndoorV4_2/DiyProIndoorV4_2.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/DiyProIndoorV4_2/DiyProIndoorV4_2.ino b/examples/DiyProIndoorV4_2/DiyProIndoorV4_2.ino index b29f621..a0a42df 100644 --- a/examples/DiyProIndoorV4_2/DiyProIndoorV4_2.ino +++ b/examples/DiyProIndoorV4_2/DiyProIndoorV4_2.ino @@ -611,7 +611,7 @@ static void updatePm(void) { ag.pms5003.resetFailCount(); } else { ag.pms5003.updateFailCount(); - Serial.printf("PMS read failed: %d\r\n", pmFailCount); + Serial.printf("PMS read failed: %d\r\n", ag.pms5003.getFailCount()); if (ag.pms5003.getFailCount() >= PMS_FAIL_COUNT_SET_INVALID) { measurements.pm01_1 = utils::getInvalidPMS(); measurements.pm25_1 = utils::getInvalidPMS();