Fast PWM for bed - newer set HEATER_BED_PIN to 1
This commit is contained in:
parent
e612eb2a17
commit
50bcfae183
|
|
@ -1621,7 +1621,7 @@ ISR(TIMER2_COMPB_vect)
|
||||||
#endif
|
#endif
|
||||||
#if defined(HEATER_BED_PIN) && HEATER_BED_PIN > -1
|
#if defined(HEATER_BED_PIN) && HEATER_BED_PIN > -1
|
||||||
soft_pwm_b = soft_pwm_bed;
|
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
|
#endif
|
||||||
#ifdef FAN_SOFT_PWM
|
#ifdef FAN_SOFT_PWM
|
||||||
soft_pwm_fan = fanSpeedSoftPwm / 2;
|
soft_pwm_fan = fanSpeedSoftPwm / 2;
|
||||||
|
|
@ -1755,7 +1755,7 @@ ISR(TIMER2_COMPB_vect)
|
||||||
state_timer_heater_b = MIN_STATE_TIME;
|
state_timer_heater_b = MIN_STATE_TIME;
|
||||||
}
|
}
|
||||||
state_heater_b = 1;
|
state_heater_b = 1;
|
||||||
WRITE(HEATER_BED_PIN, 1);
|
//WRITE(HEATER_BED_PIN, 1);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// turn OFF heather only if the minimum time is up
|
// turn OFF heather only if the minimum time is up
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue