Skip to content

Commit

Permalink
Merge pull request #3992 from thinkyhead/rc_pid_autotune_e_range
Browse files Browse the repository at this point in the history
Throw an error in PID_autotune for E < -1
  • Loading branch information
thinkyhead authored Jun 10, 2016
2 parents 26f8f54 + 3c68be7 commit 27d5794
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions Marlin/temperature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,15 +206,18 @@ unsigned char Temperature::soft_pwm[HOTENDS];
next_auto_fan_check_ms = temp_ms + 2500UL;
#endif

if (false
#if ENABLED(PIDTEMP)
|| hotend >= HOTENDS
#else
|| hotend >= 0
#endif
#if DISABLED(PIDTEMPBED)
|| hotend < 0
#endif
if (hotend >=
#if ENABLED(PIDTEMP)
HOTENDS
#else
0
#endif
|| hotend <
#if ENABLED(PIDTEMPBED)
-1
#else
0
#endif
) {
SERIAL_ECHOLN(MSG_PID_BAD_EXTRUDER_NUM);
return;
Expand Down

0 comments on commit 27d5794

Please sign in to comment.