mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-06-25 16:30:50 +00:00
Sanity check PIDTEMPBED plus BED_LIMIT_SWITCHING
This commit is contained in:
parent
8cb04816b5
commit
5955a3063f
3 changed files with 9 additions and 3 deletions
Marlin
|
@ -745,7 +745,7 @@ void manage_heater() {
|
|||
soft_pwm_bed = 0;
|
||||
WRITE_HEATER_BED(LOW);
|
||||
}
|
||||
#else // BED_LIMIT_SWITCHING
|
||||
#else // !PIDTEMPBED && !BED_LIMIT_SWITCHING
|
||||
// Check if temperature is within the correct range
|
||||
if (current_temperature_bed > BED_MINTEMP && current_temperature_bed < BED_MAXTEMP) {
|
||||
soft_pwm_bed = current_temperature_bed < target_temperature_bed ? MAX_BED_POWER >> 1 : 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue