We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2083c89 commit 85a636cCopy full SHA for 85a636c
dht11.py
@@ -43,10 +43,10 @@ def read(self):
43
# collect data into an array
44
data = self.__collect_input()
45
46
- # parse lengths all data pull up periods
+ # parse lengths of all data pull up periods
47
pull_up_lengths = self.__parse_data_pull_up_lengths(data)
48
49
- # if bit count mismatch (4 byte data + 1 byte checksum)
+ # if bit count mismatch, return error (4 byte data + 1 byte checksum)
50
if len(pull_up_lengths) != 40:
51
return DHT11Result(DHT11Result.ERR_MISSING_DATA, 0, 0)
52
0 commit comments