From: Logan Bowers Date: Thu, 26 Apr 2012 02:22:38 +0000 (-0700) Subject: Wrap the call to turn off the bed heater in a #if to prevent a compile error on board... X-Git-Tag: iwj-success-2012-07-29~32^2~3^2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=3eacb4c16df1ecf7887a4d432335950047693775;p=marlin.git Wrap the call to turn off the bed heater in a #if to prevent a compile error on boards that do not have a bed heater --- diff --git a/Marlin/temperature.cpp b/Marlin/temperature.cpp index 2180f80..783aa23 100644 --- a/Marlin/temperature.cpp +++ b/Marlin/temperature.cpp @@ -725,7 +725,9 @@ void min_temp_error(uint8_t e) { } void bed_max_temp_error(void) { +#if HEATER_BED_PIN > -1 WRITE(HEATER_BED_PIN, 0); +#endif if(IsStopped() == false) { SERIAL_ERROR_START; SERIAL_ERRORLNPGM("Temperature heated bed switched off. MAXTEMP triggered !!");