Skip to content

Commit

Permalink
Fixed DHT11,22,2302 Not Reading
Browse files Browse the repository at this point in the history
Many open issues are just because airquality  was added but the if for DHT11,22,2302 was missing the "airquality = 0" it would need to read.
  • Loading branch information
Dracrius committed Dec 30, 2021
1 parent 7b4b208 commit e1f0372
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions octoprint_enclosure/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -982,6 +982,7 @@ def get_sensor_data(self, sensor):
else:
if sensor['temp_sensor_type'] in ["11", "22", "2302"]:
temp, hum = self.read_dht_temp(sensor['temp_sensor_type'], sensor['gpio_pin'])
airquality = 0
elif sensor['temp_sensor_type'] == "18b20":
temp = self.read_18b20_temp(sensor['ds18b20_serial'])
hum = 0
Expand Down

0 comments on commit e1f0372

Please sign in to comment.