Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion common/avr/sleep_led.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions common/chibios/sleep_led.c
Original file line number Diff line number Diff line change
Expand Up @@ -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<<USB_LED_CAPS_LOCK);
}
// LED off
Expand Down Expand Up @@ -223,4 +223,4 @@ void sleep_led_toggle(void) {
// not implemented
}

#endif /* platform selection */
#endif /* platform selection */