From 841ea7ceb64648b14b44909745b13e127327be15 Mon Sep 17 00:00:00 2001 From: MechMerlin <30334081+mechmerlin@users.noreply.github.com> Date: Sun, 29 Jul 2018 15:18:45 -0700 Subject: Keyboard: Add caps lock led support to DZ60 (#3506) * add caps lock led support to DZ60 * changes from drashna's code review comments * call led_set_user at the end of led_set_kb --- keyboards/dz60/keymaps/krusli/keymap.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'keyboards/dz60/keymaps/krusli') diff --git a/keyboards/dz60/keymaps/krusli/keymap.c b/keyboards/dz60/keymaps/krusli/keymap.c index c79cb7f910..36e7b801a3 100644 --- a/keyboards/dz60/keymaps/krusli/keymap.c +++ b/keyboards/dz60/keymaps/krusli/keymap.c @@ -19,11 +19,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { _______, KC_NO, _______, _______, _______, _______, _______, KC_PPLS, KC_PMNS, KC_END, KC_PGDN, KC_DOWN, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______) }; - -void led_set_user(uint8_t usb_led) { - if (usb_led & (1 << USB_LED_CAPS_LOCK)) { - DDRB |= (1 << 2); PORTB &= ~(1 << 2); - } else { - DDRB &= ~(1 << 2); PORTB &= ~(1 << 2); - } -} -- cgit v1.2.3