Fixed DHT11,22,2302 Not Reading
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.
This commit is contained in:
@@ -982,6 +982,7 @@ class EnclosurePlugin(octoprint.plugin.StartupPlugin, octoprint.plugin.TemplateP
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user