mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-05 20:26:31 +02:00
check to handle sgp sensor
This commit is contained in:
@ -219,7 +219,9 @@ void loop() {
|
|||||||
|
|
||||||
localServer._handle();
|
localServer._handle();
|
||||||
|
|
||||||
ag.sgp41.handle();
|
if (configuration.hasSensorSGP) {
|
||||||
|
ag.sgp41.handle();
|
||||||
|
}
|
||||||
|
|
||||||
MDNS.update();
|
MDNS.update();
|
||||||
|
|
||||||
|
@ -245,8 +245,10 @@ void loop() {
|
|||||||
configUpdateHandle();
|
configUpdateHandle();
|
||||||
|
|
||||||
localServer._handle();
|
localServer._handle();
|
||||||
|
|
||||||
ag.sgp41.handle();
|
if (configuration.hasSensorSGP) {
|
||||||
|
ag.sgp41.handle();
|
||||||
|
}
|
||||||
|
|
||||||
MDNS.update();
|
MDNS.update();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user