From d5a76e899d1d4f91dc7d348075a08e42047fc8d1 Mon Sep 17 00:00:00 2001 From: Drashna Jaelre Date: Tue, 5 Dec 2017 18:45:42 -0800 Subject: Updates to drashna keymaps and userspace (#2093) * Add "secret" macor * Updating secret macros * Re-add RGB to Ergodox * Fixed issue when RGB was disabled * Consistency changes * Updated bootloader macro * Fixing audio setup * Fix bootloader typo * Update to full list of stings (for completeness) * Template fix * Finally got woodpad to force numlock * Fix for new RGB mode --- keyboards/handwired/woodpad/keymaps/drashna/keymap.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'keyboards/handwired/woodpad') diff --git a/keyboards/handwired/woodpad/keymaps/drashna/keymap.c b/keyboards/handwired/woodpad/keymaps/drashna/keymap.c index d0c748c43..51b90913c 100644 --- a/keyboards/handwired/woodpad/keymaps/drashna/keymap.c +++ b/keyboards/handwired/woodpad/keymaps/drashna/keymap.c @@ -13,7 +13,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -#include "woodpad.h" +#include QMK_KEYBOARD_H #include "drashna.h" // Each layer gets a name for readability, which is then used in the keymap matrix below. @@ -97,12 +97,6 @@ void matrix_init_keymap(void) { // set Numlock LED to output and low DDRF |= (1 << 7); PORTF &= ~(1 << 7); - - - if (!(host_keyboard_leds() & (1 << USB_LED_NUM_LOCK))) { - register_code(KC_NUMLOCK); - unregister_code(KC_NUMLOCK); - } } void matrix_scan_keymap(void) { @@ -114,3 +108,9 @@ void matrix_scan_keymap(void) { // Run Diablo 3 macro checking code. } +void led_set_keymap(uint8_t usb_led) { + if (!(usb_led & (1<