Allow MAX31865 resistance values configuration (#19695)

This commit is contained in:
Jason Smith
2020-10-11 22:40:39 -07:00
committed by GitHub
parent e7838c5f79
commit a866a758cc
3 changed files with 12 additions and 2 deletions

View File

@ -1461,7 +1461,7 @@ void Temperature::manage_heater() {
#elif ENABLED(HEATER_0_USES_MAX6675)
return (
#if ENABLED(MAX6675_IS_MAX31865)
max31865.temperature(100, 400) // 100 ohms = PT100 resistance. 400 ohms = calibration resistor
max31865.temperature(MAX31865_SENSOR_OHMS, MAX31865_CALIBRATION_OHMS)
#else
raw * 0.25
#endif
@ -2236,7 +2236,7 @@ void Temperature::disable_all_heaters() {
next_max6675_ms[hindex] = ms + MAX6675_HEAT_INTERVAL;
#if ENABLED(MAX6675_IS_MAX31865)
max6675_temp = int(max31865.temperature(100, 400)); // 100 ohms = PT100 resistance. 400 ohms = calibration resistor
max6675_temp = int(max31865.temperature(MAX31865_SENSOR_OHMS, MAX31865_CALIBRATION_OHMS));
#endif
//