aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblindassassin111 <38090555+blindassassin111@users.noreply.github.com>2018-09-13 11:19:37 -0500
committerDrashna Jaelre <drashna@live.com>2018-09-13 09:19:37 -0700
commit7ff4faf3be32675b8f57af81b22593df286a3bc9 (patch)
tree26e3d6f723079f3320562aac4a68aef6e258d037
parentb8a0d3de3dcd39558195a8a201e859a0d4ef924d (diff)
downloadqmk_firmware-7ff4faf3be32675b8f57af81b22593df286a3bc9.tar.gz
qmk_firmware-7ff4faf3be32675b8f57af81b22593df286a3bc9.zip
Keyboard: Fixing Omnikey lock light issue (#3891)
-rw-r--r--keyboards/omnikey_blackheart/keymaps/default/keymap.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/keyboards/omnikey_blackheart/keymaps/default/keymap.c b/keyboards/omnikey_blackheart/keymaps/default/keymap.c
index 331621870..e4865adde 100644
--- a/keyboards/omnikey_blackheart/keymaps/default/keymap.c
+++ b/keyboards/omnikey_blackheart/keymaps/default/keymap.c
@@ -1,9 +1,5 @@
1#include QMK_KEYBOARD_H 1#include QMK_KEYBOARD_H
2 2
3// Fillers to make layering more clear
4#define _______ KC_TRNS
5#define XXXXXXX KC_NO
6
7const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
8 4
9 [0] = LAYOUT(\ 5 [0] = LAYOUT(\
@@ -26,7 +22,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
26 ), 22 ),
27}; 23};
28 24
29void led_set_kb(uint8_t usb_led) { 25void led_set_user(uint8_t usb_led) {
30 DDRB |= (1 << 4) | (1 << 5) | (1 << 6); 26 DDRB |= (1 << 4) | (1 << 5) | (1 << 6);
31 27
32 if (usb_led & (1 << USB_LED_NUM_LOCK)) { 28 if (usb_led & (1 << USB_LED_NUM_LOCK)) {
@@ -46,4 +42,4 @@ void led_set_kb(uint8_t usb_led) {
46 } else { 42 } else {
47 PORTB &= ~(1 << 6); 43 PORTB &= ~(1 << 6);
48 } 44 }
49} \ No newline at end of file 45}