Fast PWM for bed - newer set HEATER_BED_PIN to 1

This commit is contained in:
Robert Pelnar 2019-01-21 18:21:17 +01:00
parent e612eb2a17
commit 50bcfae183

View file

@ -1621,7 +1621,7 @@ ISR(TIMER2_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
soft_pwm_fan = fanSpeedSoftPwm / 2;
@ -1755,7 +1755,7 @@ ISR(TIMER2_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