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(); } }