Introduce temp watch protection for the bed
When setting the bed temp via M140/M190 if the thermistor does not read an increase of WATCH_BED_TEMP_INCREASE degrees by WATCH_BED_TEMP_PERIOD seconds then it will throw "Error:Heating failed, system stopped! Heater_ID: bed" and call the kill() function. Conflicts: Marlin/Configuration_adv.h
This commit is contained in:
@ -603,7 +603,7 @@ void lcd_set_home_offsets() {
|
||||
/**
|
||||
* Watch temperature callbacks
|
||||
*/
|
||||
#if ENABLED(THERMAL_PROTECTION_HOTENDS)
|
||||
#if ENABLED(THERMAL_PROTECTION_HOTENDS) && WATCH_TEMP_PERIOD > 0
|
||||
#if TEMP_SENSOR_0 != 0
|
||||
void watch_temp_callback_E0() { start_watching_heater(0); }
|
||||
#endif
|
||||
@ -631,6 +631,16 @@ void lcd_set_home_offsets() {
|
||||
#endif // EXTRUDERS > 3
|
||||
#endif
|
||||
|
||||
#if ENABLED(THERMAL_PROTECTION_BED) && WATCH_BED_TEMP_PERIOD > 0
|
||||
#if TEMP_SENSOR_BED != 0
|
||||
void watch_temp_callback_bed() { start_watching_bed(); }
|
||||
#endif
|
||||
#else
|
||||
#if TEMP_SENSOR_BED != 0
|
||||
void watch_temp_callback_bed() {}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/**
|
||||
*
|
||||
* "Tune" submenu
|
||||
@ -685,7 +695,7 @@ static void lcd_tune_menu() {
|
||||
// Bed:
|
||||
//
|
||||
#if TEMP_SENSOR_BED != 0
|
||||
MENU_MULTIPLIER_ITEM_EDIT(int3, MSG_BED, &target_temperature_bed, 0, BED_MAXTEMP - 15);
|
||||
MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(int3, MSG_BED, &target_temperature_bed, 0, BED_MAXTEMP - 15, watch_temp_callback_bed);
|
||||
#endif
|
||||
|
||||
//
|
||||
|
Reference in New Issue
Block a user