|
@ -1461,7 +1461,7 @@ void Temperature::manage_heater() { |
|
|
#elif ENABLED(HEATER_0_USES_MAX6675) |
|
|
#elif ENABLED(HEATER_0_USES_MAX6675) |
|
|
return ( |
|
|
return ( |
|
|
#if ENABLED(MAX6675_IS_MAX31865) |
|
|
#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 |
|
|
#else |
|
|
raw * 0.25 |
|
|
raw * 0.25 |
|
|
#endif |
|
|
#endif |
|
@ -2236,7 +2236,7 @@ void Temperature::disable_all_heaters() { |
|
|
next_max6675_ms[hindex] = ms + MAX6675_HEAT_INTERVAL; |
|
|
next_max6675_ms[hindex] = ms + MAX6675_HEAT_INTERVAL; |
|
|
|
|
|
|
|
|
#if ENABLED(MAX6675_IS_MAX31865) |
|
|
#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 |
|
|
#endif |
|
|
|
|
|
|
|
|
//
|
|
|
//
|
|
|