X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=protocol%2Fpjrc%2Fusb.c;h=393b36f78e04048a87ec1a6c49e92e1927c03a5f;hb=188ab49dd3467217a59fea59995259df69bbb78e;hp=0a5436deb4fc67f795d8308ca7fb8a4400aaec6b;hpb=1348663a4ff1a4696db39e72bcb751608714de8e;p=max%2Ftmk_keyboard.git diff --git a/protocol/pjrc/usb.c b/protocol/pjrc/usb.c index 0a5436de..393b36f7 100644 --- a/protocol/pjrc/usb.c +++ b/protocol/pjrc/usb.c @@ -34,8 +34,11 @@ #include "led.h" #include "print.h" #include "util.h" +#ifdef SLEEP_LED_ENABLE #include "sleep_led.h" +#endif #include "suspend.h" +#include "action_util.h" /************************************************************************** @@ -659,8 +662,9 @@ ISR(USB_GEN_vect) suspend_wakeup_init(); #ifdef SLEEP_LED_ENABLE sleep_led_disable(); -#endif + // NOTE: converters may not accept this led_set(host_keyboard_leds()); +#endif UDIEN |= (1<