From 13c1a937506ebc60c691e54046175c29d9d1c947 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 20 Sep 2022 10:26:09 -0400 Subject: spi_temperature: wip - only report "unspecified error" if error not reported Signed-off-by: Kevin O'Connor --- klippy/extras/spi_temperature.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klippy/extras/spi_temperature.py b/klippy/extras/spi_temperature.py index ba71af3be..9970a28db 100644 --- a/klippy/extras/spi_temperature.py +++ b/klippy/extras/spi_temperature.py @@ -303,7 +303,7 @@ class MAX31865(SensorBase): "Max31865 VRTD- is less than 0.85 * VBIAS, FORCE- open") if fault & 0x04: self.report_fault("Max31865 Overvoltage or undervoltage fault") - if fault & 0x03: + if not fault & 0xfc: self.report_fault("Max31865 Unspecified error") # Attempt to clear the fault self.spi.spi_send(self.config_reg) -- cgit v1.2.3