diff --git a/common/avr/sleep_led.c b/common/avr/sleep_led.c index 37c2cf1b..4b1cfd99 100644 --- a/common/avr/sleep_led.c +++ b/common/avr/sleep_led.c @@ -92,7 +92,7 @@ ISR(TIMER1_COMPA_vect) timer.row++; // LED on - if (timer.pwm.count == 0) { + if (timer.pwm.count == 0 && pgm_read_byte(&breathing_table[timer.pwm.index]) != 0 ) { sleep_led_on(); } // LED off diff --git a/common/chibios/sleep_led.c b/common/chibios/sleep_led.c index 4c35cfcb..a28d0508 100644 --- a/common/chibios/sleep_led.c +++ b/common/chibios/sleep_led.c @@ -62,7 +62,7 @@ OSAL_IRQ_HANDLER(TIMER_INTERRUPT_VECTOR) { timer.row++; // LED on - if (timer.pwm.count == 0) { + if (timer.pwm.count == 0 && breathing_table[timer.pwm.index] != 0 ) { led_set(1<