|
@ -735,7 +735,7 @@ void Temperature::manage_heater() { |
|
|
} |
|
|
} |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
} // Hotends Loop
|
|
|
} // HOTEND_LOOP
|
|
|
|
|
|
|
|
|
#if HAS_AUTO_FAN |
|
|
#if HAS_AUTO_FAN |
|
|
if (ELAPSED(ms, next_auto_fan_check_ms)) { // only need to check fan state very infrequently
|
|
|
if (ELAPSED(ms, next_auto_fan_check_ms)) { // only need to check fan state very infrequently
|
|
@ -889,9 +889,8 @@ void Temperature::updateTemperaturesFromRawValues() { |
|
|
#if ENABLED(HEATER_0_USES_MAX6675) |
|
|
#if ENABLED(HEATER_0_USES_MAX6675) |
|
|
current_temperature_raw[0] = read_max6675(); |
|
|
current_temperature_raw[0] = read_max6675(); |
|
|
#endif |
|
|
#endif |
|
|
HOTEND_LOOP() { |
|
|
HOTEND_LOOP() |
|
|
current_temperature[e] = Temperature::analog2temp(current_temperature_raw[e], e); |
|
|
current_temperature[e] = Temperature::analog2temp(current_temperature_raw[e], e); |
|
|
} |
|
|
|
|
|
current_temperature_bed = Temperature::analog2tempBed(current_temperature_bed_raw); |
|
|
current_temperature_bed = Temperature::analog2tempBed(current_temperature_bed_raw); |
|
|
#if ENABLED(TEMP_SENSOR_1_AS_REDUNDANT) |
|
|
#if ENABLED(TEMP_SENSOR_1_AS_REDUNDANT) |
|
|
redundant_temperature = Temperature::analog2temp(redundant_temperature_raw, 1); |
|
|
redundant_temperature = Temperature::analog2temp(redundant_temperature_raw, 1); |
|
@ -943,15 +942,7 @@ void Temperature::init() { |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
// Finish init of mult hotend arrays
|
|
|
// Finish init of mult hotend arrays
|
|
|
HOTEND_LOOP() { |
|
|
HOTEND_LOOP() maxttemp[e] = maxttemp[0]; |
|
|
// populate with the first value
|
|
|
|
|
|
maxttemp[e] = maxttemp[0]; |
|
|
|
|
|
#if ENABLED(PIDTEMP) |
|
|
|
|
|
#if ENABLED(PID_EXTRUSION_SCALING) |
|
|
|
|
|
last_e_position = 0; |
|
|
|
|
|
#endif |
|
|
|
|
|
#endif //PIDTEMP
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(PIDTEMP) && ENABLED(PID_EXTRUSION_SCALING) |
|
|
#if ENABLED(PIDTEMP) && ENABLED(PID_EXTRUSION_SCALING) |
|
|
last_e_position = 0; |
|
|
last_e_position = 0; |
|
|