From 1afcca25a1280b55028579bebd04749d84c7b635 Mon Sep 17 00:00:00 2001 From: Phat Nguyen Date: Mon, 26 Aug 2024 15:54:41 +0700 Subject: [PATCH] Fix compile failed. --- examples/BASIC/BASIC.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/BASIC/BASIC.ino b/examples/BASIC/BASIC.ino index 85ffd45..7419f13 100644 --- a/examples/BASIC/BASIC.ino +++ b/examples/BASIC/BASIC.ino @@ -525,7 +525,7 @@ static void updatePm(void) { } if(ag.pms5003.getFailCount() >= ag.pms5003.getFailCountMax()) { - Serial.printf("PMS failure count reach to max set %d, restarting...", ag->pms5003.getFailCountMax()); + Serial.printf("PMS failure count reach to max set %d, restarting...", ag.pms5003.getFailCountMax()); ESP.restart(); } }