Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
Signed-off-by: Francesco Torchia <[email protected]>
  • Loading branch information
torchiaf committed Dec 29, 2024
1 parent b2c168f commit 3bf8ad8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raspberrypi/rpc_server/dht11.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

def read():
sensor = Adafruit_DHT.DHT11
pin = int([x for x in module.devices.config if x.name == "DHT11_PIN"][0])
pin = int([x.value for x in module.devices.config if x.name == "DHT11_PIN"][0])

try:
humidity, temperature = Adafruit_DHT.read_retry(sensor, pin)
Expand Down

0 comments on commit 3bf8ad8

Please sign in to comment.