Skip to content

Commit ef7398f

Browse files
authored
Fix status_word
fix double self.self
1 parent 2f706a5 commit ef7398f

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)