Skip to content

Commit

Permalink
Merge pull request #1374 from Joe2824/patch-1
Browse files Browse the repository at this point in the history
Fix status_word
  • Loading branch information
kizniche authored Apr 9, 2024
2 parents 2f706a5 + ef7398f commit 570d9c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mycodo/inputs/dht20.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def initialize(self):
self.dht20 = SMBus(self.input_dev.i2c_bus)

# Check if Sensor is ready
status_word = self.dht20.read_byte(self.self.i2c_address)
status_word = self.dht20.read_byte(self.i2c_address)
if status_word != 0x18:
buffer = bytearray(b'\x00\x00')
# Initialize the 0x1B, 0x1C, 0x1E registers
Expand Down

0 comments on commit 570d9c7

Please sign in to comment.