Simplify soft_pwm_isr even further
Isolate the PWM management into soft_pwm_core
This commit is contained in:
parent
dfd8fee712
commit
932fcbb33f
@ -1426,10 +1426,8 @@ FORCE_INLINE static void applyBabysteps() {
|
||||
}
|
||||
#endif //BABYSTEPPING
|
||||
|
||||
FORCE_INLINE static void soft_pwm_isr()
|
||||
FORCE_INLINE static void soft_pwm_core()
|
||||
{
|
||||
lcd_buttons_update();
|
||||
|
||||
static uint8_t pwm_count = (1 << SOFT_PWM_SCALE);
|
||||
static uint8_t soft_pwm_0;
|
||||
#ifdef SLOW_PWM_HEATERS
|
||||
@ -1764,6 +1762,12 @@ FORCE_INLINE static void soft_pwm_isr()
|
||||
} //if ((pwm_count % 64) == 0) {
|
||||
|
||||
#endif //ifndef SLOW_PWM_HEATERS
|
||||
}
|
||||
|
||||
FORCE_INLINE static void soft_pwm_isr()
|
||||
{
|
||||
lcd_buttons_update();
|
||||
soft_pwm_core();
|
||||
|
||||
#ifdef BABYSTEPPING
|
||||
applyBabysteps();
|
||||
|
Loading…
Reference in New Issue
Block a user