Cleanup warnings
This commit is contained in:
@ -1744,8 +1744,8 @@ void Temperature::isr() {
|
||||
|
||||
// Macros for Slow PWM timer logic
|
||||
#define _SLOW_PWM_ROUTINE(NR, src) \
|
||||
soft_pwm_ ##NR = src; \
|
||||
if (soft_pwm_ ##NR > 0) { \
|
||||
soft_pwm_count_ ##NR = src; \
|
||||
if (soft_pwm_count_ ##NR > 0) { \
|
||||
if (state_timer_heater_ ##NR == 0) { \
|
||||
if (state_heater_ ##NR == 0) state_timer_heater_ ##NR = MIN_STATE_TIME; \
|
||||
state_heater_ ##NR = 1; \
|
||||
@ -1762,7 +1762,7 @@ void Temperature::isr() {
|
||||
#define SLOW_PWM_ROUTINE(n) _SLOW_PWM_ROUTINE(n, soft_pwm_amount[n])
|
||||
|
||||
#define PWM_OFF_ROUTINE(NR) \
|
||||
if (soft_pwm_ ##NR < slow_pwm_count) { \
|
||||
if (soft_pwm_count_ ##NR < slow_pwm_count) { \
|
||||
if (state_timer_heater_ ##NR == 0) { \
|
||||
if (state_heater_ ##NR == 1) state_timer_heater_ ##NR = MIN_STATE_TIME; \
|
||||
state_heater_ ##NR = 0; \
|
||||
|
Reference in New Issue
Block a user