had probs with cheap thermocpl. Changed exception on short to a msg: Thermocouple reports short to ground so that app didn't abend

pull/1/head
Peter Shanks 2019-05-26 10:03:43 +10:00
rodzic 1e06b5f930
commit e8957f7dec
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -76,7 +76,8 @@ class MAX31855(object):
# raise MAX31855Error("No Connection")
print("MAX31855Error(No Connection)")
elif shortToGround:
raise MAX31855Error("Thermocouple short to ground")
#raise MAX31855Error("Thermocouple short to ground")
print("Thermocouple reports short to ground")
elif shortToVCC:
raise MAX31855Error("Thermocouple short to VCC")
else: