|
@@ -735,7 +735,7 @@ void Temperature::manage_heater() {
|
735
|
735
|
}
|
736
|
736
|
#endif
|
737
|
737
|
|
738
|
|
- } // Hotends Loop
|
|
738
|
+ } // HOTEND_LOOP
|
739
|
739
|
|
740
|
740
|
#if HAS_AUTO_FAN
|
741
|
741
|
if (ELAPSED(ms, next_auto_fan_check_ms)) { // only need to check fan state very infrequently
|
|
@@ -889,9 +889,8 @@ void Temperature::updateTemperaturesFromRawValues() {
|
889
|
889
|
#if ENABLED(HEATER_0_USES_MAX6675)
|
890
|
890
|
current_temperature_raw[0] = read_max6675();
|
891
|
891
|
#endif
|
892
|
|
- HOTEND_LOOP() {
|
|
892
|
+ HOTEND_LOOP()
|
893
|
893
|
current_temperature[e] = Temperature::analog2temp(current_temperature_raw[e], e);
|
894
|
|
- }
|
895
|
894
|
current_temperature_bed = Temperature::analog2tempBed(current_temperature_bed_raw);
|
896
|
895
|
#if ENABLED(TEMP_SENSOR_1_AS_REDUNDANT)
|
897
|
896
|
redundant_temperature = Temperature::analog2temp(redundant_temperature_raw, 1);
|
|
@@ -943,15 +942,7 @@ void Temperature::init() {
|
943
|
942
|
#endif
|
944
|
943
|
|
945
|
944
|
// Finish init of mult hotend arrays
|
946
|
|
- HOTEND_LOOP() {
|
947
|
|
- // populate with the first value
|
948
|
|
- maxttemp[e] = maxttemp[0];
|
949
|
|
- #if ENABLED(PIDTEMP)
|
950
|
|
- #if ENABLED(PID_EXTRUSION_SCALING)
|
951
|
|
- last_e_position = 0;
|
952
|
|
- #endif
|
953
|
|
- #endif //PIDTEMP
|
954
|
|
- }
|
|
945
|
+ HOTEND_LOOP() maxttemp[e] = maxttemp[0];
|
955
|
946
|
|
956
|
947
|
#if ENABLED(PIDTEMP) && ENABLED(PID_EXTRUSION_SCALING)
|
957
|
948
|
last_e_position = 0;
|