From: tmk Date: Wed, 12 Oct 2016 05:35:53 +0000 (+0900) Subject: core: Fix sleep_led X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=5969d6267f400da6c0abdfce545890ba1f1acd1a;p=max%2Ftmk_keyboard.git core: Fix sleep_led --- diff --git a/tmk_core/common/avr/sleep_led.c b/tmk_core/common/avr/sleep_led.c index dab3eb0f..37c2cf1b 100644 --- a/tmk_core/common/avr/sleep_led.c +++ b/tmk_core/common/avr/sleep_led.c @@ -45,10 +45,17 @@ void sleep_led_disable(void) TIMSK1 &= ~_BV(OCIE1A); } -void sleep_led_toggle(void) + +__attribute__ ((weak)) +void sleep_led_on(void) { - /* Disable Compare Match Interrupt */ - TIMSK1 ^= _BV(OCIE1A); + led_set(1<