Browse Source

Merge pull request #152 from loganb/Marlin_v1

Fix compile error on boards without a bed heater.

I could not find why this problem was introduced. 
Its quite obvious, so I think its in general interest to merge.
Bernhard Kubicek 13 years ago
parent
commit
8446c9dc92
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      Marlin/temperature.cpp

+ 2
- 0
Marlin/temperature.cpp View File

@@ -725,7 +725,9 @@ void min_temp_error(uint8_t e) {
725 725
 }
726 726
 
727 727
 void bed_max_temp_error(void) {
728
+#if HEATER_BED_PIN > -1
728 729
   WRITE(HEATER_BED_PIN, 0);
730
+#endif
729 731
   if(IsStopped() == false) {
730 732
     SERIAL_ERROR_START;
731 733
     SERIAL_ERRORLNPGM("Temperature heated bed switched off. MAXTEMP triggered !!");

Loading…
Cancel
Save