Skip to content

Commit 570d9c7

Browse files
authored
Merge pull request kizniche#1374 from Joe2824/patch-1
Fix status_word
2 parents 2f706a5 + ef7398f commit 570d9c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mycodo/inputs/dht20.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def initialize(self):
9595
self.dht20 = SMBus(self.input_dev.i2c_bus)
9696

9797
# Check if Sensor is ready
98-
status_word = self.dht20.read_byte(self.self.i2c_address)
98+
status_word = self.dht20.read_byte(self.i2c_address)
9999
if status_word != 0x18:
100100
buffer = bytearray(b'\x00\x00')
101101
# Initialize the 0x1B, 0x1C, 0x1E registers

0 commit comments

Comments
 (0)