forked from airgradienthq/arduino
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