|
@@ -346,7 +346,7 @@ temp_range_t Temperature::temp_range[HOTENDS] = ARRAY_BY_HOTENDS(sensor_heater_0
|
346
|
346
|
* temperature to succeed.
|
347
|
347
|
*/
|
348
|
348
|
void Temperature::PID_autotune(const float &target, const heater_ind_t heater, const int8_t ncycles, const bool set_result/*=false*/) {
|
349
|
|
- float current = 0.0;
|
|
349
|
+ float current_temp = 0.0;
|
350
|
350
|
int cycles = 0;
|
351
|
351
|
bool heating = true;
|
352
|
352
|
|
|
@@ -410,7 +410,7 @@ temp_range_t Temperature::temp_range[HOTENDS] = ARRAY_BY_HOTENDS(sensor_heater_0
|
410
|
410
|
|
411
|
411
|
wait_for_heatup = true; // Can be interrupted with M108
|
412
|
412
|
#if ENABLED(PRINTER_EVENT_LEDS)
|
413
|
|
- const float start_temp = GHV(temp_bed.current, temp_hotend[heater].current);
|
|
413
|
+ const float start_temp = GHV(temp_bed.celsius, temp_hotend[heater].celsius);
|
414
|
414
|
LEDColor color = ONHEATINGSTART();
|
415
|
415
|
#endif
|
416
|
416
|
|
|
@@ -427,12 +427,12 @@ temp_range_t Temperature::temp_range[HOTENDS] = ARRAY_BY_HOTENDS(sensor_heater_0
|
427
|
427
|
updateTemperaturesFromRawValues();
|
428
|
428
|
|
429
|
429
|
// Get the current temperature and constrain it
|
430
|
|
- current = GHV(temp_bed.current, temp_hotend[heater].current);
|
431
|
|
- NOLESS(maxT, current);
|
432
|
|
- NOMORE(minT, current);
|
|
430
|
+ current_temp = GHV(temp_bed.celsius, temp_hotend[heater].celsius);
|
|
431
|
+ NOLESS(maxT, current_temp);
|
|
432
|
+ NOMORE(minT, current_temp);
|
433
|
433
|
|
434
|
434
|
#if ENABLED(PRINTER_EVENT_LEDS)
|
435
|
|
- ONHEATING(start_temp, current, target);
|
|
435
|
+ ONHEATING(start_temp, current_temp, target);
|
436
|
436
|
#endif
|
437
|
437
|
|
438
|
438
|
#if HAS_AUTO_FAN
|
|
@@ -442,7 +442,7 @@ temp_range_t Temperature::temp_range[HOTENDS] = ARRAY_BY_HOTENDS(sensor_heater_0
|
442
|
442
|
}
|
443
|
443
|
#endif
|
444
|
444
|
|
445
|
|
- if (heating && current > target) {
|
|
445
|
+ if (heating && current_temp > target) {
|
446
|
446
|
if (ELAPSED(ms, t2 + 5000UL)) {
|
447
|
447
|
heating = false;
|
448
|
448
|
SHV((bias - d) >> 1, (bias - d) >> 1);
|
|
@@ -452,7 +452,7 @@ temp_range_t Temperature::temp_range[HOTENDS] = ARRAY_BY_HOTENDS(sensor_heater_0
|
452
|
452
|
}
|
453
|
453
|
}
|
454
|
454
|
|
455
|
|
- if (!heating && current < target) {
|
|
455
|
+ if (!heating && current_temp < target) {
|
456
|
456
|
if (ELAPSED(ms, t1 + 5000UL)) {
|
457
|
457
|
heating = true;
|
458
|
458
|
t2 = ms;
|
|
@@ -510,7 +510,7 @@ temp_range_t Temperature::temp_range[HOTENDS] = ARRAY_BY_HOTENDS(sensor_heater_0
|
510
|
510
|
#ifndef MAX_OVERSHOOT_PID_AUTOTUNE
|
511
|
511
|
#define MAX_OVERSHOOT_PID_AUTOTUNE 20
|
512
|
512
|
#endif
|
513
|
|
- if (current > target + MAX_OVERSHOOT_PID_AUTOTUNE) {
|
|
513
|
+ if (current_temp > target + MAX_OVERSHOOT_PID_AUTOTUNE) {
|
514
|
514
|
SERIAL_ECHOLNPGM(MSG_PID_TEMP_TOO_HIGH);
|
515
|
515
|
break;
|
516
|
516
|
}
|
|
@@ -535,15 +535,15 @@ temp_range_t Temperature::temp_range[HOTENDS] = ARRAY_BY_HOTENDS(sensor_heater_0
|
535
|
535
|
#endif
|
536
|
536
|
) {
|
537
|
537
|
if (!heated) { // If not yet reached target...
|
538
|
|
- if (current > next_watch_temp) { // Over the watch temp?
|
539
|
|
- next_watch_temp = current + watch_temp_increase; // - set the next temp to watch for
|
|
538
|
+ if (current_temp > next_watch_temp) { // Over the watch temp?
|
|
539
|
+ next_watch_temp = current_temp + watch_temp_increase; // - set the next temp to watch for
|
540
|
540
|
temp_change_ms = ms + watch_temp_period * 1000UL; // - move the expiration timer up
|
541
|
|
- if (current > watch_temp_target) heated = true; // - Flag if target temperature reached
|
|
541
|
+ if (current_temp > watch_temp_target) heated = true; // - Flag if target temperature reached
|
542
|
542
|
}
|
543
|
543
|
else if (ELAPSED(ms, temp_change_ms)) // Watch timer expired
|
544
|
544
|
_temp_error(heater, PSTR(MSG_T_HEATING_FAILED), TEMP_ERR_PSTR(MSG_HEATING_FAILED_LCD, heater));
|
545
|
545
|
}
|
546
|
|
- else if (current < target - (MAX_OVERSHOOT_PID_AUTOTUNE)) // Heated, then temperature fell too far?
|
|
546
|
+ else if (current_temp < target - (MAX_OVERSHOOT_PID_AUTOTUNE)) // Heated, then temperature fell too far?
|
547
|
547
|
_temp_error(heater, PSTR(MSG_T_THERMAL_RUNAWAY), TEMP_ERR_PSTR(MSG_THERMAL_RUNAWAY, heater));
|
548
|
548
|
}
|
549
|
549
|
#endif
|
|
@@ -685,11 +685,11 @@ int16_t Temperature::getHeaterPower(const heater_ind_t heater_id) {
|
685
|
685
|
uint8_t fanState = 0;
|
686
|
686
|
|
687
|
687
|
HOTEND_LOOP()
|
688
|
|
- if (temp_hotend[e].current >= EXTRUDER_AUTO_FAN_TEMPERATURE)
|
|
688
|
+ if (temp_hotend[e].celsius >= EXTRUDER_AUTO_FAN_TEMPERATURE)
|
689
|
689
|
SBI(fanState, pgm_read_byte(&fanBit[e]));
|
690
|
690
|
|
691
|
691
|
#if HAS_AUTO_CHAMBER_FAN
|
692
|
|
- if (temp_chamber.current >= CHAMBER_AUTO_FAN_TEMPERATURE)
|
|
692
|
+ if (temp_chamber.celsius >= CHAMBER_AUTO_FAN_TEMPERATURE)
|
693
|
693
|
SBI(fanState, pgm_read_byte(&fanBit[CHAMBER_FAN_INDEX]));
|
694
|
694
|
#endif
|
695
|
695
|
|
|
@@ -831,7 +831,7 @@ float Temperature::get_pid_output_hotend(const uint8_t e) {
|
831
|
831
|
static float temp_iState[HOTENDS] = { 0 },
|
832
|
832
|
temp_dState[HOTENDS] = { 0 };
|
833
|
833
|
static bool pid_reset[HOTENDS] = { false };
|
834
|
|
- const float pid_error = temp_hotend[ee].target - temp_hotend[ee].current;
|
|
834
|
+ const float pid_error = temp_hotend[ee].target - temp_hotend[ee].celsius;
|
835
|
835
|
|
836
|
836
|
if (temp_hotend[ee].target == 0
|
837
|
837
|
|| pid_error < -(PID_FUNCTIONAL_RANGE)
|
|
@@ -853,7 +853,7 @@ float Temperature::get_pid_output_hotend(const uint8_t e) {
|
853
|
853
|
pid_reset[ee] = false;
|
854
|
854
|
}
|
855
|
855
|
|
856
|
|
- work_pid[ee].Kd = work_pid[ee].Kd + PID_K2 * (PID_PARAM(Kd, ee) * (temp_dState[ee] - temp_hotend[ee].current) - work_pid[ee].Kd);
|
|
856
|
+ work_pid[ee].Kd = work_pid[ee].Kd + PID_K2 * (PID_PARAM(Kd, ee) * (temp_dState[ee] - temp_hotend[ee].celsius) - work_pid[ee].Kd);
|
857
|
857
|
const float max_power_over_i_gain = float(PID_MAX) / PID_PARAM(Ki, ee) - float(MIN_POWER);
|
858
|
858
|
temp_iState[ee] = constrain(temp_iState[ee] + pid_error, 0, max_power_over_i_gain);
|
859
|
859
|
work_pid[ee].Kp = PID_PARAM(Kp, ee) * pid_error;
|
|
@@ -880,7 +880,7 @@ float Temperature::get_pid_output_hotend(const uint8_t e) {
|
880
|
880
|
|
881
|
881
|
LIMIT(pid_output, 0, PID_MAX);
|
882
|
882
|
}
|
883
|
|
- temp_dState[ee] = temp_hotend[ee].current;
|
|
883
|
+ temp_dState[ee] = temp_hotend[ee].celsius;
|
884
|
884
|
|
885
|
885
|
#else // PID_OPENLOOP
|
886
|
886
|
|
|
@@ -893,7 +893,7 @@ float Temperature::get_pid_output_hotend(const uint8_t e) {
|
893
|
893
|
SERIAL_ECHO_START();
|
894
|
894
|
SERIAL_ECHOPAIR(
|
895
|
895
|
MSG_PID_DEBUG, ee,
|
896
|
|
- MSG_PID_DEBUG_INPUT, temp_hotend[ee].current,
|
|
896
|
+ MSG_PID_DEBUG_INPUT, temp_hotend[ee].celsius,
|
897
|
897
|
MSG_PID_DEBUG_OUTPUT, pid_output
|
898
|
898
|
);
|
899
|
899
|
#if DISABLED(PID_OPENLOOP)
|
|
@@ -917,7 +917,7 @@ float Temperature::get_pid_output_hotend(const uint8_t e) {
|
917
|
917
|
#else
|
918
|
918
|
#define _TIMED_OUT_TEST false
|
919
|
919
|
#endif
|
920
|
|
- pid_output = (!_TIMED_OUT_TEST && temp_hotend[ee].current < temp_hotend[ee].target) ? BANG_MAX : 0;
|
|
920
|
+ pid_output = (!_TIMED_OUT_TEST && temp_hotend[ee].celsius < temp_hotend[ee].target) ? BANG_MAX : 0;
|
921
|
921
|
#undef _TIMED_OUT_TEST
|
922
|
922
|
|
923
|
923
|
#endif
|
|
@@ -936,7 +936,7 @@ float Temperature::get_pid_output_hotend(const uint8_t e) {
|
936
|
936
|
static bool pid_reset = true;
|
937
|
937
|
float pid_output = 0;
|
938
|
938
|
const float max_power_over_i_gain = float(MAX_BED_POWER) / temp_bed.pid.Ki - float(MIN_BED_POWER),
|
939
|
|
- pid_error = temp_bed.target - temp_bed.current;
|
|
939
|
+ pid_error = temp_bed.target - temp_bed.celsius;
|
940
|
940
|
|
941
|
941
|
if (!temp_bed.target || pid_error < -(PID_FUNCTIONAL_RANGE)) {
|
942
|
942
|
pid_output = 0;
|
|
@@ -957,9 +957,9 @@ float Temperature::get_pid_output_hotend(const uint8_t e) {
|
957
|
957
|
|
958
|
958
|
work_pid.Kp = temp_bed.pid.Kp * pid_error;
|
959
|
959
|
work_pid.Ki = temp_bed.pid.Ki * temp_iState;
|
960
|
|
- work_pid.Kd = work_pid.Kd + PID_K2 * (temp_bed.pid.Kd * (temp_dState - temp_bed.current) - work_pid.Kd);
|
|
960
|
+ work_pid.Kd = work_pid.Kd + PID_K2 * (temp_bed.pid.Kd * (temp_dState - temp_bed.celsius) - work_pid.Kd);
|
961
|
961
|
|
962
|
|
- temp_dState = temp_bed.current;
|
|
962
|
+ temp_dState = temp_bed.celsius;
|
963
|
963
|
|
964
|
964
|
pid_output = constrain(work_pid.Kp + work_pid.Ki + work_pid.Kd + float(MIN_BED_POWER), 0, MAX_BED_POWER);
|
965
|
965
|
}
|
|
@@ -973,7 +973,7 @@ float Temperature::get_pid_output_hotend(const uint8_t e) {
|
973
|
973
|
#if ENABLED(PID_BED_DEBUG)
|
974
|
974
|
SERIAL_ECHO_START();
|
975
|
975
|
SERIAL_ECHOLNPAIR(
|
976
|
|
- " PID_BED_DEBUG : Input ", temp_bed.current, " Output ", pid_output,
|
|
976
|
+ " PID_BED_DEBUG : Input ", temp_bed.celsius, " Output ", pid_output,
|
977
|
977
|
#if DISABLED(PID_OPENLOOP)
|
978
|
978
|
MSG_PID_DEBUG_PTERM, work_pid.Kp,
|
979
|
979
|
MSG_PID_DEBUG_ITERM, work_pid.Ki,
|
|
@@ -1016,13 +1016,13 @@ void Temperature::manage_heater() {
|
1016
|
1016
|
updateTemperaturesFromRawValues(); // also resets the watchdog
|
1017
|
1017
|
|
1018
|
1018
|
#if ENABLED(HEATER_0_USES_MAX6675)
|
1019
|
|
- if (temp_hotend[0].current > _MIN(HEATER_0_MAXTEMP, HEATER_0_MAX6675_TMAX - 1.0)) max_temp_error(H_E0);
|
1020
|
|
- if (temp_hotend[0].current < _MAX(HEATER_0_MINTEMP, HEATER_0_MAX6675_TMIN + .01)) min_temp_error(H_E0);
|
|
1019
|
+ if (temp_hotend[0].celsius > _MIN(HEATER_0_MAXTEMP, HEATER_0_MAX6675_TMAX - 1.0)) max_temp_error(H_E0);
|
|
1020
|
+ if (temp_hotend[0].celsius < _MAX(HEATER_0_MINTEMP, HEATER_0_MAX6675_TMIN + .01)) min_temp_error(H_E0);
|
1021
|
1021
|
#endif
|
1022
|
1022
|
|
1023
|
1023
|
#if ENABLED(HEATER_1_USES_MAX6675)
|
1024
|
|
- if (temp_hotend[1].current > _MIN(HEATER_1_MAXTEMP, HEATER_1_MAX6675_TMAX - 1.0)) max_temp_error(H_E1);
|
1025
|
|
- if (temp_hotend[1].current < _MAX(HEATER_1_MINTEMP, HEATER_1_MAX6675_TMIN + .01)) min_temp_error(H_E1);
|
|
1024
|
+ if (temp_hotend[1].celsius > _MIN(HEATER_1_MAXTEMP, HEATER_1_MAX6675_TMAX - 1.0)) max_temp_error(H_E1);
|
|
1025
|
+ if (temp_hotend[1].celsius < _MAX(HEATER_1_MINTEMP, HEATER_1_MAX6675_TMIN + .01)) min_temp_error(H_E1);
|
1026
|
1026
|
#endif
|
1027
|
1027
|
|
1028
|
1028
|
#if HAS_THERMAL_PROTECTION || DISABLED(PIDTEMPBED) || HAS_AUTO_FAN || HEATER_IDLE_HANDLER
|
|
@@ -1041,10 +1041,10 @@ void Temperature::manage_heater() {
|
1041
|
1041
|
|
1042
|
1042
|
#if ENABLED(THERMAL_PROTECTION_HOTENDS)
|
1043
|
1043
|
// Check for thermal runaway
|
1044
|
|
- thermal_runaway_protection(tr_state_machine[e], temp_hotend[e].current, temp_hotend[e].target, (heater_ind_t)e, THERMAL_PROTECTION_PERIOD, THERMAL_PROTECTION_HYSTERESIS);
|
|
1044
|
+ thermal_runaway_protection(tr_state_machine[e], temp_hotend[e].celsius, temp_hotend[e].target, (heater_ind_t)e, THERMAL_PROTECTION_PERIOD, THERMAL_PROTECTION_HYSTERESIS);
|
1045
|
1045
|
#endif
|
1046
|
1046
|
|
1047
|
|
- temp_hotend[e].soft_pwm_amount = (temp_hotend[e].current > temp_range[e].mintemp || is_preheating(e)) && temp_hotend[e].current < temp_range[e].maxtemp ? (int)get_pid_output_hotend(e) >> 1 : 0;
|
|
1047
|
+ temp_hotend[e].soft_pwm_amount = (temp_hotend[e].celsius > temp_range[e].mintemp || is_preheating(e)) && temp_hotend[e].celsius < temp_range[e].maxtemp ? (int)get_pid_output_hotend(e) >> 1 : 0;
|
1048
|
1048
|
|
1049
|
1049
|
#if WATCH_HOTENDS
|
1050
|
1050
|
// Make sure temperature is increasing
|
|
@@ -1058,7 +1058,7 @@ void Temperature::manage_heater() {
|
1058
|
1058
|
|
1059
|
1059
|
#if ENABLED(TEMP_SENSOR_1_AS_REDUNDANT)
|
1060
|
1060
|
// Make sure measured temperatures are close together
|
1061
|
|
- if (ABS(temp_hotend[0].current - redundant_temperature) > MAX_REDUNDANT_TEMP_SENSOR_DIFF)
|
|
1061
|
+ if (ABS(temp_hotend[0].celsius - redundant_temperature) > MAX_REDUNDANT_TEMP_SENSOR_DIFF)
|
1062
|
1062
|
_temp_error(H_E0, PSTR(MSG_REDUNDANCY), PSTR(MSG_ERR_REDUNDANT_TEMP));
|
1063
|
1063
|
#endif
|
1064
|
1064
|
|
|
@@ -1120,7 +1120,7 @@ void Temperature::manage_heater() {
|
1120
|
1120
|
#endif
|
1121
|
1121
|
|
1122
|
1122
|
#if HAS_THERMALLY_PROTECTED_BED
|
1123
|
|
- thermal_runaway_protection(tr_state_machine_bed, temp_bed.current, temp_bed.target, H_BED, THERMAL_PROTECTION_BED_PERIOD, THERMAL_PROTECTION_BED_HYSTERESIS);
|
|
1123
|
+ thermal_runaway_protection(tr_state_machine_bed, temp_bed.celsius, temp_bed.target, H_BED, THERMAL_PROTECTION_BED_PERIOD, THERMAL_PROTECTION_BED_HYSTERESIS);
|
1124
|
1124
|
#endif
|
1125
|
1125
|
|
1126
|
1126
|
#if HEATER_IDLE_HANDLER
|
|
@@ -1134,17 +1134,17 @@ void Temperature::manage_heater() {
|
1134
|
1134
|
#endif
|
1135
|
1135
|
{
|
1136
|
1136
|
#if ENABLED(PIDTEMPBED)
|
1137
|
|
- temp_bed.soft_pwm_amount = WITHIN(temp_bed.current, BED_MINTEMP, BED_MAXTEMP) ? (int)get_pid_output_bed() >> 1 : 0;
|
|
1137
|
+ temp_bed.soft_pwm_amount = WITHIN(temp_bed.celsius, BED_MINTEMP, BED_MAXTEMP) ? (int)get_pid_output_bed() >> 1 : 0;
|
1138
|
1138
|
#else
|
1139
|
1139
|
// Check if temperature is within the correct band
|
1140
|
|
- if (WITHIN(temp_bed.current, BED_MINTEMP, BED_MAXTEMP)) {
|
|
1140
|
+ if (WITHIN(temp_bed.celsius, BED_MINTEMP, BED_MAXTEMP)) {
|
1141
|
1141
|
#if ENABLED(BED_LIMIT_SWITCHING)
|
1142
|
|
- if (temp_bed.current >= temp_bed.target + BED_HYSTERESIS)
|
|
1142
|
+ if (temp_bed.celsius >= temp_bed.target + BED_HYSTERESIS)
|
1143
|
1143
|
temp_bed.soft_pwm_amount = 0;
|
1144
|
|
- else if (temp_bed.current <= temp_bed.target - (BED_HYSTERESIS))
|
|
1144
|
+ else if (temp_bed.celsius <= temp_bed.target - (BED_HYSTERESIS))
|
1145
|
1145
|
temp_bed.soft_pwm_amount = MAX_BED_POWER >> 1;
|
1146
|
1146
|
#else // !PIDTEMPBED && !BED_LIMIT_SWITCHING
|
1147
|
|
- temp_bed.soft_pwm_amount = temp_bed.current < temp_bed.target ? MAX_BED_POWER >> 1 : 0;
|
|
1147
|
+ temp_bed.soft_pwm_amount = temp_bed.celsius < temp_bed.target ? MAX_BED_POWER >> 1 : 0;
|
1148
|
1148
|
#endif
|
1149
|
1149
|
}
|
1150
|
1150
|
else {
|
|
@@ -1182,14 +1182,14 @@ void Temperature::manage_heater() {
|
1182
|
1182
|
if (ELAPSED(ms, next_chamber_check_ms)) {
|
1183
|
1183
|
next_chamber_check_ms = ms + CHAMBER_CHECK_INTERVAL;
|
1184
|
1184
|
|
1185
|
|
- if (WITHIN(temp_chamber.current, CHAMBER_MINTEMP, CHAMBER_MAXTEMP)) {
|
|
1185
|
+ if (WITHIN(temp_chamber.celsius, CHAMBER_MINTEMP, CHAMBER_MAXTEMP)) {
|
1186
|
1186
|
#if ENABLED(CHAMBER_LIMIT_SWITCHING)
|
1187
|
|
- if (temp_chamber.current >= temp_chamber.target + TEMP_CHAMBER_HYSTERESIS)
|
|
1187
|
+ if (temp_chamber.celsius >= temp_chamber.target + TEMP_CHAMBER_HYSTERESIS)
|
1188
|
1188
|
temp_chamber.soft_pwm_amount = 0;
|
1189
|
|
- else if (temp_chamber.current <= temp_chamber.target - (TEMP_CHAMBER_HYSTERESIS))
|
|
1189
|
+ else if (temp_chamber.celsius <= temp_chamber.target - (TEMP_CHAMBER_HYSTERESIS))
|
1190
|
1190
|
temp_chamber.soft_pwm_amount = MAX_CHAMBER_POWER >> 1;
|
1191
|
1191
|
#else
|
1192
|
|
- temp_chamber.soft_pwm_amount = temp_chamber.current < temp_chamber.target ? MAX_CHAMBER_POWER >> 1 : 0;
|
|
1192
|
+ temp_chamber.soft_pwm_amount = temp_chamber.celsius < temp_chamber.target ? MAX_CHAMBER_POWER >> 1 : 0;
|
1193
|
1193
|
#endif
|
1194
|
1194
|
}
|
1195
|
1195
|
else {
|
|
@@ -1198,12 +1198,12 @@ void Temperature::manage_heater() {
|
1198
|
1198
|
}
|
1199
|
1199
|
|
1200
|
1200
|
#if ENABLED(THERMAL_PROTECTION_CHAMBER)
|
1201
|
|
- thermal_runaway_protection(tr_state_machine_chamber, temp_chamber.current, temp_chamber.target, H_CHAMBER, THERMAL_PROTECTION_CHAMBER_PERIOD, THERMAL_PROTECTION_CHAMBER_HYSTERESIS);
|
|
1201
|
+ thermal_runaway_protection(tr_state_machine_chamber, temp_chamber.celsius, temp_chamber.target, H_CHAMBER, THERMAL_PROTECTION_CHAMBER_PERIOD, THERMAL_PROTECTION_CHAMBER_HYSTERESIS);
|
1202
|
1202
|
#endif
|
1203
|
1203
|
}
|
1204
|
1204
|
|
1205
|
1205
|
// TODO: Implement true PID pwm
|
1206
|
|
- //temp_bed.soft_pwm_amount = WITHIN(temp_chamber.current, CHAMBER_MINTEMP, CHAMBER_MAXTEMP) ? (int)get_pid_output_chamber() >> 1 : 0;
|
|
1206
|
+ //temp_bed.soft_pwm_amount = WITHIN(temp_chamber.celsius, CHAMBER_MINTEMP, CHAMBER_MAXTEMP) ? (int)get_pid_output_chamber() >> 1 : 0;
|
1207
|
1207
|
|
1208
|
1208
|
#endif // HAS_HEATED_CHAMBER
|
1209
|
1209
|
}
|
|
@@ -1500,12 +1500,12 @@ void Temperature::updateTemperaturesFromRawValues() {
|
1500
|
1500
|
#if ENABLED(HEATER_1_USES_MAX6675)
|
1501
|
1501
|
temp_hotend[1].raw = READ_MAX6675(1);
|
1502
|
1502
|
#endif
|
1503
|
|
- HOTEND_LOOP() temp_hotend[e].current = analog_to_celsius_hotend(temp_hotend[e].raw, e);
|
|
1503
|
+ HOTEND_LOOP() temp_hotend[e].celsius = analog_to_celsius_hotend(temp_hotend[e].raw, e);
|
1504
|
1504
|
#if HAS_HEATED_BED
|
1505
|
|
- temp_bed.current = analog_to_celsius_bed(temp_bed.raw);
|
|
1505
|
+ temp_bed.celsius = analog_to_celsius_bed(temp_bed.raw);
|
1506
|
1506
|
#endif
|
1507
|
1507
|
#if HAS_TEMP_CHAMBER
|
1508
|
|
- temp_chamber.current = analog_to_celsius_chamber(temp_chamber.raw);
|
|
1508
|
+ temp_chamber.celsius = analog_to_celsius_chamber(temp_chamber.raw);
|
1509
|
1509
|
#endif
|
1510
|
1510
|
#if ENABLED(TEMP_SENSOR_1_AS_REDUNDANT)
|
1511
|
1511
|
redundant_temperature = analog_to_celsius_hotend(redundant_temperature_raw, 1);
|