From e8957f7decec9d8a68bec473a19db0de5fd9b3f3 Mon Sep 17 00:00:00 2001 From: Peter Shanks Date: Sun, 26 May 2019 10:03:43 +1000 Subject: [PATCH] had probs with cheap thermocpl. Changed exception on short to a msg: Thermocouple reports short to ground so that app didn't abend --- lib/max31855.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/max31855.py b/lib/max31855.py index 57541fe..df3bcdd 100644 --- a/lib/max31855.py +++ b/lib/max31855.py @@ -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: