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();
if (configuration.hasSensorSGP) {
ag.sgp41.handle();
}
MDNS.update();

View File

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