0
0
Fork 0
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:
Scott Lahteine 2016-03-25 19:05:31 -07:00
parent 8cb04816b5
commit 5955a3063f
3 changed files with 9 additions and 3 deletions

View file

@ -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;