check to handle sgp sensor

This commit is contained in:
Phat Nguyen
2024-06-24 18:33:46 +07:00
parent 48f1a8042a
commit 57c33e4900
2 changed files with 7 additions and 3 deletions

View File

@ -219,7 +219,9 @@ void loop() {
localServer._handle(); localServer._handle();
ag.sgp41.handle(); if (configuration.hasSensorSGP) {
ag.sgp41.handle();
}
MDNS.update(); MDNS.update();

View File

@ -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();