|
@@ -731,7 +731,7 @@ void Temperature::manage_heater() {
|
731
|
731
|
}
|
732
|
732
|
#endif
|
733
|
733
|
|
734
|
|
- } // Hotends Loop
|
|
734
|
+ } // HOTEND_LOOP
|
735
|
735
|
|
736
|
736
|
#if HAS_AUTO_FAN
|
737
|
737
|
if (ELAPSED(ms, next_auto_fan_check_ms)) { // only need to check fan state very infrequently
|
|
@@ -885,9 +885,8 @@ void Temperature::updateTemperaturesFromRawValues() {
|
885
|
885
|
#if ENABLED(HEATER_0_USES_MAX6675)
|
886
|
886
|
current_temperature_raw[0] = read_max6675();
|
887
|
887
|
#endif
|
888
|
|
- HOTEND_LOOP() {
|
|
888
|
+ HOTEND_LOOP()
|
889
|
889
|
current_temperature[e] = Temperature::analog2temp(current_temperature_raw[e], e);
|
890
|
|
- }
|
891
|
890
|
current_temperature_bed = Temperature::analog2tempBed(current_temperature_bed_raw);
|
892
|
891
|
#if ENABLED(TEMP_SENSOR_1_AS_REDUNDANT)
|
893
|
892
|
redundant_temperature = Temperature::analog2temp(redundant_temperature_raw, 1);
|
|
@@ -939,15 +938,7 @@ void Temperature::init() {
|
939
|
938
|
#endif
|
940
|
939
|
|
941
|
940
|
// Finish init of mult hotend arrays
|
942
|
|
- HOTEND_LOOP() {
|
943
|
|
- // populate with the first value
|
944
|
|
- maxttemp[e] = maxttemp[0];
|
945
|
|
- #if ENABLED(PIDTEMP)
|
946
|
|
- #if ENABLED(PID_EXTRUSION_SCALING)
|
947
|
|
- last_e_position = 0;
|
948
|
|
- #endif
|
949
|
|
- #endif //PIDTEMP
|
950
|
|
- }
|
|
941
|
+ HOTEND_LOOP() maxttemp[e] = maxttemp[0];
|
951
|
942
|
|
952
|
943
|
#if ENABLED(PIDTEMP) && ENABLED(PID_EXTRUSION_SCALING)
|
953
|
944
|
last_e_position = 0;
|