TERN0 to TERN1 so errors get checked for MAX31855

This commit is contained in:
GadgetAngel 2020-11-10 21:19:53 -05:00 committed by Scott Lahteine
parent 72d680b915
commit f778c1b155

View file

@ -2291,7 +2291,7 @@ void Temperature::disable_all_heaters() {
MAX6675_WRITE(HIGH); // disable TT_MAX6675 MAX6675_WRITE(HIGH); // disable TT_MAX6675
const uint8_t fault = TERN0(HAS_MAX31865, maxref.readFault()); const uint8_t fault = TERN1(HAS_MAX31865, maxref.readFault());
if (DISABLED(IGNORE_THERMOCOUPLE_ERRORS) && (max6675_temp & MAX6675_ERROR_MASK) && fault) { if (DISABLED(IGNORE_THERMOCOUPLE_ERRORS) && (max6675_temp & MAX6675_ERROR_MASK) && fault) {
max6675_errors[hindex]++; max6675_errors[hindex]++;