|
|
|
@ -302,11 +302,6 @@ void matrix_init_user(void)
|
|
|
|
|
void led_set_user(uint8_t usb_led)
|
|
|
|
|
{
|
|
|
|
|
static uint8_t old_usb_led = 0;
|
|
|
|
|
static bool first_run = true;
|
|
|
|
|
|
|
|
|
|
// Skip first execution to avoid beeps caused by LED states being detected on power-up
|
|
|
|
|
if (!first_run)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
if ((usb_led & (1<<USB_LED_CAPS_LOCK)) && !(old_usb_led & (1<<USB_LED_CAPS_LOCK)))
|
|
|
|
|
{
|
|
|
|
@ -338,9 +333,7 @@ void led_set_user(uint8_t usb_led)
|
|
|
|
|
// If SCROLL LED is turning off...
|
|
|
|
|
PLAY_NOTE_ARRAY(tone_scroll_off, false, LEGATO);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
old_usb_led = usb_led;
|
|
|
|
|
first_run = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|