From 23b1acf0d08c7e028477f946517b587ec7f43a29 Mon Sep 17 00:00:00 2001 From: Hpsaturn Date: Fri, 4 Oct 2024 23:08:09 +0200 Subject: [PATCH] missing init and read methods calls for sgh41 --- src/Sensors.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Sensors.cpp b/src/Sensors.cpp index 6b98c0a..5b85364 100644 --- a/src/Sensors.cpp +++ b/src/Sensors.cpp @@ -83,6 +83,7 @@ bool Sensors::readAllSensors() { DFRobotNH3Read(); DFRobotNO2Read(); geigerRead(); + sgp41Read(); #ifdef DHT11_ENABLED dhtRead(); @@ -140,6 +141,7 @@ void Sensors::init(u_int pms_type, int pms_rx, int pms_tx) { DFRobotCOInit(); DFRobotNH3Init(); DFRobotNO2Init(); + sgp41Init(); #ifdef DHT11_ENABLED dhtInit();