Skip to content

Commit 6aa386d

Browse files
committed
fix bugs
1 parent c531532 commit 6aa386d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

AHT20_sensor_control/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
else:
4343
CRC8_check = AHT20Status.AHT20_CRCNOTOK
4444
while (CRC8_check == AHT20Status.AHT20_CRCNOTOK):
45-
temerature, humidity, CRC8_check = triggerAndMeasureAndCRCcheck(my_wrapper)
45+
temperature, humidity, CRC8_check = triggerAndMeasureAndCRCcheck(my_wrapper)
4646
mylogger.info("{0:.2f} C\t{1:.2f} %RH".format(temperature, humidity * 100))
4747
time.sleep(MEASURE_INTERVAL)
4848
except KeyboardInterrupt:

AHT20_sensor_control/crc8_helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ def mod2_division_8bits(a, b, number_of_bytes, init_value):
3939
else:
4040
head_of_a = head_of_a >> 1
4141
b = b >> 1
42-
print("a:{0}\thead of a:{1}\tb:{2}".format(
43-
bin(a), bin(head_of_a), bin(b)))
42+
# print("a:{0}\thead of a:{1}\tb:{2}".format(
43+
# bin(a), bin(head_of_a), bin(b)))
4444
return a
4545

4646

0 commit comments

Comments
 (0)