Throw an error in PID_autotune for E < -1

This commit is contained in:
Scott Lahteine 2016-06-09 16:41:53 -07:00
parent 26f8f54c56
commit 3c68be79dc

View File

@ -206,14 +206,17 @@ unsigned char Temperature::soft_pwm[HOTENDS];
next_auto_fan_check_ms = temp_ms + 2500UL;
#endif
if (false
if (hotend >=
#if ENABLED(PIDTEMP)
|| hotend >= HOTENDS
HOTENDS
#else
|| hotend >= 0
0
#endif
#if DISABLED(PIDTEMPBED)
|| hotend < 0
|| hotend <
#if ENABLED(PIDTEMPBED)
-1
#else
0
#endif
) {
SERIAL_ECHOLN(MSG_PID_BAD_EXTRUDER_NUM);