Support neg temps on TEMP_SENSOR_1 for MAX31855

This commit is contained in:
GadgetAngel 2020-11-09 21:16:44 -05:00 committed by Scott Lahteine
parent 05645068c2
commit e71c2b78c4

View file

@ -2338,7 +2338,7 @@ void Temperature::disable_all_heaters() {
max6675_errors[hindex] = 0;
}
#if MAX6675_0_IS_MAX31855
#if MAX6675_0_IS_MAX31855 || MAX6675_1_IS_MAX31855
if (max6675_temp & 0x00002000) max6675_temp |= 0xFFFFC000; // Support negative temperature
#endif