Revert "Fast PWM for bed - newer set HEATER_BED_PIN to 1"

This reverts commit 50bcfae183.
This commit is contained in:
PavelSindler 2019-01-25 18:38:46 +01:00
parent 31236e411e
commit ab2a25cd3f

View file

@ -1606,7 +1606,7 @@ ISR(TIMER0_COMPB_vect)
#endif
#if defined(HEATER_BED_PIN) && HEATER_BED_PIN > -1
soft_pwm_b = soft_pwm_bed;
//if(soft_pwm_b > 0) WRITE(HEATER_BED_PIN,1); else WRITE(HEATER_BED_PIN,0);
if(soft_pwm_b > 0) WRITE(HEATER_BED_PIN,1); else WRITE(HEATER_BED_PIN,0);
#endif
}
#ifdef FAN_SOFT_PWM
@ -1743,7 +1743,7 @@ ISR(TIMER0_COMPB_vect)
state_timer_heater_b = MIN_STATE_TIME;
}
state_heater_b = 1;
//WRITE(HEATER_BED_PIN, 1);
WRITE(HEATER_BED_PIN, 1);
}
} else {
// turn OFF heather only if the minimum time is up