mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-03-23 22:56:18 +00:00
✨ CONTROLLER_FAN_BED_HEATING (#27409)
This commit is contained in:
parent
763cd7c5f2
commit
5c3bc2194a
3 changed files with 6 additions and 1 deletions
|
@ -591,6 +591,8 @@
|
||||||
// Use TEMP_SENSOR_SOC as a trigger for enabling the controller fan
|
// Use TEMP_SENSOR_SOC as a trigger for enabling the controller fan
|
||||||
//#define CONTROLLER_FAN_MIN_SOC_TEMP 40 // (°C) Turn on the fan if the SoC reaches this temperature
|
//#define CONTROLLER_FAN_MIN_SOC_TEMP 40 // (°C) Turn on the fan if the SoC reaches this temperature
|
||||||
|
|
||||||
|
#define CONTROLLER_FAN_BED_HEATING // Turn on the fan when heating the bed
|
||||||
|
|
||||||
//#define CONTROLLER_FAN_EDITABLE // Enable M710 configurable settings
|
//#define CONTROLLER_FAN_EDITABLE // Enable M710 configurable settings
|
||||||
#if ENABLED(CONTROLLER_FAN_EDITABLE)
|
#if ENABLED(CONTROLLER_FAN_EDITABLE)
|
||||||
#define CONTROLLER_FAN_MENU // Enable the Controller Fan submenu
|
#define CONTROLLER_FAN_MENU // Enable the Controller Fan submenu
|
||||||
|
|
|
@ -70,7 +70,9 @@ void ControllerFan::update() {
|
||||||
*/
|
*/
|
||||||
const ena_mask_t axis_mask = TERN(CONTROLLER_FAN_USE_Z_ONLY, _BV(Z_AXIS), (ena_mask_t)~TERN0(CONTROLLER_FAN_IGNORE_Z, _BV(Z_AXIS)));
|
const ena_mask_t axis_mask = TERN(CONTROLLER_FAN_USE_Z_ONLY, _BV(Z_AXIS), (ena_mask_t)~TERN0(CONTROLLER_FAN_IGNORE_Z, _BV(Z_AXIS)));
|
||||||
if ( (stepper.axis_enabled.bits & axis_mask)
|
if ( (stepper.axis_enabled.bits & axis_mask)
|
||||||
|| TERN0(HAS_HEATED_BED, thermalManager.temp_bed.soft_pwm_amount > 0)
|
#if ALL(HAS_HEATED_BED, CONTROLLER_FAN_BED_HEATING)
|
||||||
|
|| thermalManager.temp_bed.soft_pwm_amount > 0
|
||||||
|
#endif
|
||||||
#ifdef CONTROLLER_FAN_MIN_BOARD_TEMP
|
#ifdef CONTROLLER_FAN_MIN_BOARD_TEMP
|
||||||
|| thermalManager.wholeDegBoard() >= CONTROLLER_FAN_MIN_BOARD_TEMP
|
|| thermalManager.wholeDegBoard() >= CONTROLLER_FAN_MIN_BOARD_TEMP
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -838,6 +838,7 @@
|
||||||
#if !TEMP_SENSOR_BED
|
#if !TEMP_SENSOR_BED
|
||||||
#undef BED_MINTEMP
|
#undef BED_MINTEMP
|
||||||
#undef BED_MAXTEMP
|
#undef BED_MAXTEMP
|
||||||
|
#undef CONTROLLER_FAN_BED_HEATING
|
||||||
#endif
|
#endif
|
||||||
#if DISABLED(THERMAL_PROTECTION_BED)
|
#if DISABLED(THERMAL_PROTECTION_BED)
|
||||||
#undef THERMAL_PROTECTION_BED_PERIOD
|
#undef THERMAL_PROTECTION_BED_PERIOD
|
||||||
|
|
Loading…
Add table
Reference in a new issue