mirror of
https://github.com/airgradienthq/arduino.git
synced 2026-04-28 18:12:13 +02:00
update API change on example
This commit is contained in:
@@ -503,7 +503,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();
|
||||
|
||||
Reference in New Issue
Block a user