Skip to content

Commit

Permalink
missing init and read methods calls for sgh41
Browse files Browse the repository at this point in the history
  • Loading branch information
hpsaturn committed Oct 4, 2024
1 parent 9598d14 commit 23b1acf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Sensors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ bool Sensors::readAllSensors() {
DFRobotNH3Read();
DFRobotNO2Read();
geigerRead();
sgp41Read();

#ifdef DHT11_ENABLED
dhtRead();
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 23b1acf

Please sign in to comment.