mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-29 16:37:17 +02:00
fix: compile failed for esp32-c3
This commit is contained in:
@ -54,12 +54,12 @@ void loop() {
|
|||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
if (ag.getBoardType() == OPEN_AIR_OUTDOOR) {
|
if (ag.getBoardType() == OPEN_AIR_OUTDOOR) {
|
||||||
if (ag.pms5003t_1.isFailed() == false) {
|
if (ag.pms5003t_1.connected()) {
|
||||||
PM2 = ag.pms5003t_1.getPm25Ae();
|
PM2 = ag.pms5003t_1.getPm25Ae();
|
||||||
readResul = true;
|
readResul = true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (ag.pms5003.isFailed() == false) {
|
if (ag.pms5003.connected()) {
|
||||||
PM2 = ag.pms5003.getPm25Ae();
|
PM2 = ag.pms5003.getPm25Ae();
|
||||||
readResul = true;
|
readResul = true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user