mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-23 12:04:19 +00:00
Fix compile errors & temp range
This commit is contained in:
parent
1ac629f919
commit
43aba9f918
@ -389,7 +389,7 @@ volatile bool Temperature::temp_meas_ready = false;
|
|||||||
next_auto_fan_check_ms = next_temp_ms + 2500UL;
|
next_auto_fan_check_ms = next_temp_ms + 2500UL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (target > GHV(BED_MAXTEMP, temp_range[heater].maxtemp) - 15) {
|
if (target > GHV(BED_MAXTEMP - 10, temp_range[heater].maxtemp - 15)) {
|
||||||
SERIAL_ECHOLNPGM(MSG_PID_TEMP_TOO_HIGH);
|
SERIAL_ECHOLNPGM(MSG_PID_TEMP_TOO_HIGH);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -857,7 +857,7 @@ void Temperature::min_temp_error(const heater_ind_t heater) {
|
|||||||
#if HOTENDS == 1
|
#if HOTENDS == 1
|
||||||
constexpr bool this_hotend = true;
|
constexpr bool this_hotend = true;
|
||||||
#else
|
#else
|
||||||
const bool this_hotend = (e == active_extruder);
|
const bool this_hotend = (ee == active_extruder);
|
||||||
#endif
|
#endif
|
||||||
work_pid[ee].Kc = 0;
|
work_pid[ee].Kc = 0;
|
||||||
if (this_hotend) {
|
if (this_hotend) {
|
||||||
@ -886,7 +886,7 @@ void Temperature::min_temp_error(const heater_ind_t heater) {
|
|||||||
#endif // PID_OPENLOOP
|
#endif // PID_OPENLOOP
|
||||||
|
|
||||||
#if ENABLED(PID_DEBUG)
|
#if ENABLED(PID_DEBUG)
|
||||||
if (e == active_extruder) {
|
if (ee == active_extruder) {
|
||||||
SERIAL_ECHO_START();
|
SERIAL_ECHO_START();
|
||||||
SERIAL_ECHOPAIR(
|
SERIAL_ECHOPAIR(
|
||||||
MSG_PID_DEBUG, ee,
|
MSG_PID_DEBUG, ee,
|
||||||
|
Loading…
Reference in New Issue
Block a user