Skip to content

Commit

Permalink
Merge branch 'master' into eink-special-frames
Browse files Browse the repository at this point in the history
  • Loading branch information
thebentern authored Mar 11, 2024
2 parents 95967a0 + c7839b4 commit 2d5a6c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/modules/Telemetry/Sensor/SHT31Sensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ int32_t SHT31Sensor::runOnce()
if (!hasSensor()) {
return DEFAULT_SENSOR_MINIMUM_WAIT_TIME_BETWEEN_READS;
}
sht31 = Adafruit_SHT31(nodeTelemetrySensorsMap[sensorType].second);
status = sht31.begin(nodeTelemetrySensorsMap[sensorType].first);
return initI2CSensor();
}
Expand Down
2 changes: 1 addition & 1 deletion src/modules/Telemetry/Sensor/SHT31Sensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
class SHT31Sensor : public TelemetrySensor
{
private:
Adafruit_SHT31 sht31 = Adafruit_SHT31(nodeTelemetrySensorsMap[sensorType].second);
Adafruit_SHT31 sht31;

protected:
virtual void setup() override;
Expand Down

0 comments on commit 2d5a6c1

Please sign in to comment.