update API change on example

This commit is contained in:
Phat Nguyen
2024-09-24 20:07:31 +07:00
parent cb511903ef
commit b8e10f473e
4 changed files with 4 additions and 4 deletions

View File

@ -555,7 +555,7 @@ static void updateTvoc(void) {
}
static void updatePm(void) {
if (ag.pms5003.isFailed() == false) {
if (ag.pms5003.connected()) {
measurements.pm01_1 = ag.pms5003.getPm01Ae();
measurements.pm25_1 = ag.pms5003.getPm25Ae();
measurements.pm10_1 = ag.pms5003.getPm10Ae();