summaryrefslogtreecommitdiffstats
path: root/converter/sun_usb/led.c
diff options
context:
space:
mode:
authortmk <hasu@tmk-kbd.com>2015-06-03 00:03:08 +0900
committertmk <hasu@tmk-kbd.com>2015-06-03 00:29:36 +0900
commit49b0c7e5ef1683f001c4c9e1c7516da8c5fe592e (patch)
tree1e3b831f007e4d1632865acfd529b78d37fe19cc /converter/sun_usb/led.c
parent37af88217d62f22fd5d64a7b58285ce9a94d2176 (diff)
sun_usb: Fix LED status update at startup
Diffstat (limited to 'converter/sun_usb/led.c')
-rw-r--r--converter/sun_usb/led.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/converter/sun_usb/led.c b/converter/sun_usb/led.c
index 48c3f1c2b2..809398faa5 100644
--- a/converter/sun_usb/led.c
+++ b/converter/sun_usb/led.c
@@ -18,6 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "stdint.h"
#include "serial.h"
#include "led.h"
+#include "debug.h"
void led_set(uint8_t usb_led)
@@ -27,6 +28,7 @@ void led_set(uint8_t usb_led)
if (usb_led & (1<<USB_LED_COMPOSE)) sun_led |= (1<<1);
if (usb_led & (1<<USB_LED_SCROLL_LOCK)) sun_led |= (1<<2);
if (usb_led & (1<<USB_LED_CAPS_LOCK)) sun_led |= (1<<3);
+ xprintf("LED: %02X\n", usb_led);
serial_send(0x0E);
serial_send(sun_led);