gcode-process.c: fix HEATER_EXTRUDER reference.

A rare combination of factors makes this code assume HEATER_EXTRUDER
always exists, when that is not necessarily so.  Add the normal
guard around it.
This commit is contained in:
Phil Hord 2013-10-24 19:37:39 -04:00 committed by Markus Hitter
parent 89c85181f7
commit 498779d7ab
1 changed files with 2 additions and 0 deletions

View File

@ -715,9 +715,11 @@ void process_gcode_command() {
//? --- M136: PRINT PID settings to host ---
//? Undocumented.
//? This comand is only available in DEBUG builds.
#ifdef HEATER_EXTRUDER
if ( ! next_target.seen_P)
next_target.P = HEATER_EXTRUDER;
heater_print(next_target.P);
#endif
break;
#endif