Code: Select all
# read 1-wire HWT temperature
try:
HWT_temp = ds2.read_temp(bytearray(b'(\xd4\x13\xef\x04\x00\x00y'))
except Exception as error:
try:
with open('errors.txt', 'a') as outfile:
outfile.write('HWT ' + str(error) + '\n')
except OSError:
pass
viewtopic.php?f=16&t=9885&p=55282&hilit ... crc#p55282
but why does it lock-up?
Am I not handling the exception that has been raised in def read_scratch (ds18x20.py) properly?
Thanks.