Browse Source

Add some missed preprocessor conditional to softpwm_led

old_master
Kai Ryu 9 years ago
parent
commit
632c306c29
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      common/softpwm_led.c

+ 6
- 0
common/softpwm_led.c View File

@@ -334,9 +334,15 @@ ISR(TIMER1_COMPA_vect)
static uint8_t counter = 0;
if (++counter >= SOFTPWM_LED_FREQ) {
counter = 0;
#ifdef FADING_LED_ENABLE
fading_led_proc();
#endif
#ifdef BREATHING_LED_ENABLE
breathing_led_proc();
#endif
#if CUSTOM_LED_ENABLE
softpwm_led_custom();
#endif
}
#endif
}