Skip to content

Commit c6f029e

Browse files
author
Holger Fleischmann
committed
Fixed threshold for byte separation high phase to make readings above 25°C more robust
1 parent aa6effd commit c6f029e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tsic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def __gpio_callback(self, gpio, level, tick):
146146
self.__bit_count = 0
147147
self.__bit_ticks = None
148148

149-
elif self.__received_bytes is not None and high_ticks > 150:
149+
elif self.__received_bytes is not None and high_ticks >= 2*self.__bit_ticks:
150150
# next byte in packet
151151
# print('====> NEXT BYTE START')
152152
if self.__bit_count == 9:

0 commit comments

Comments
 (0)