Browse Source

Handle temp callbacks when THERMAL_PROTECTION_HOTENDS is not defined

by alternate definition for the callback macros
pull/1/head
AnHardt 9 years ago
committed by Richard Wackerbarth
parent
commit
bb4efcf603
  1. 18
      Marlin/ultralcd.cpp

18
Marlin/ultralcd.cpp

@ -477,19 +477,33 @@ void lcd_set_home_offsets() {
/** /**
* Watch temperature callbacks * Watch temperature callbacks
*/ */
#if ENABLED(THERMAL_PROTECTION_HOTENDS)
#if TEMP_SENSOR_0 != 0 #if TEMP_SENSOR_0 != 0
void watch_temp_callback_E0() { start_watching_heater(0); } void watch_temp_callback_E0() { start_watching_heater(0); }
#endif #endif
#if EXTRUDERS > 1 && TEMP_SENSOR_1 != 0 #if EXTRUDERS > 1 && TEMP_SENSOR_1 != 0
void watch_temp_callback_E1() { start_watching_heater(1); } void watch_temp_callback_E1() { start_watching_heater(1); }
#endif // EXTRUDERS > 1
#if EXTRUDERS > 2 && TEMP_SENSOR_2 != 0 #if EXTRUDERS > 2 && TEMP_SENSOR_2 != 0
void watch_temp_callback_E2() { start_watching_heater(2); } void watch_temp_callback_E2() { start_watching_heater(2); }
#endif // EXTRUDERS > 2
#if EXTRUDERS > 3 && TEMP_SENSOR_3 != 0 #if EXTRUDERS > 3 && TEMP_SENSOR_3 != 0
void watch_temp_callback_E3() { start_watching_heater(3); } void watch_temp_callback_E3() { start_watching_heater(3); }
#endif // EXTRUDERS > 3 #endif // EXTRUDERS > 3
#endif // EXTRUDERS > 2 #else
#if TEMP_SENSOR_0 != 0
void watch_temp_callback_E0() {}
#endif
#if EXTRUDERS > 1 && TEMP_SENSOR_1 != 0
void watch_temp_callback_E1() {}
#endif // EXTRUDERS > 1 #endif // EXTRUDERS > 1
#if EXTRUDERS > 2 && TEMP_SENSOR_2 != 0
void watch_temp_callback_E2() {}
#endif // EXTRUDERS > 2
#if EXTRUDERS > 3 && TEMP_SENSOR_3 != 0
void watch_temp_callback_E3() {}
#endif // EXTRUDERS > 3
#endif
/** /**
* Items shared between Tune and Temperature menus * Items shared between Tune and Temperature menus
*/ */

Loading…
Cancel
Save