diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2022-09-20 17:26:09 +0300 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2022-09-20 17:26:09 +0300 |
commit | 13c1a937506ebc60c691e54046175c29d9d1c947 (patch) | |
tree | 2d93c62b2063072187d71b7793b2a547a654811f | |
parent | 17d89a34fdc378e35562cb4fdf2cf6c1cacf95b4 (diff) |
spi_temperature: wip - only report "unspecified error" if error not reportedwork-thermocouple-20220919
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | klippy/extras/spi_temperature.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |