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

This commit is contained in:
Logan Bowers 2012-04-25 19:22:38 -07:00
parent e4d2138dbd
commit 3eacb4c16d

View File

@ -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 !!");