diff options
author | Drashna Jaelre <drashna@live.com> | 2017-12-05 18:45:42 -0800 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2017-12-05 21:45:42 -0500 |
commit | d5a76e899d1d4f91dc7d348075a08e42047fc8d1 (patch) | |
tree | 55fc36a57b7d658814d7df7d71c7daf207b4053e /keyboards/handwired/woodpad/keymaps/drashna | |
parent | dd05bf0d9602820bb9ba3bb1a8586b14c5504312 (diff) | |
download | qmk_firmware-d5a76e899d1d4f91dc7d348075a08e42047fc8d1.tar.gz qmk_firmware-d5a76e899d1d4f91dc7d348075a08e42047fc8d1.zip |
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
Diffstat (limited to 'keyboards/handwired/woodpad/keymaps/drashna')
-rw-r--r-- | keyboards/handwired/woodpad/keymaps/drashna/keymap.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/keyboards/handwired/woodpad/keymaps/drashna/keymap.c b/keyboards/handwired/woodpad/keymaps/drashna/keymap.c index d0c748c434..51b90913cb 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 <http://www.gnu.org/licenses/>. */ -#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<<USB_LED_NUM_LOCK))) { + register_code(KC_NUMLOCK); + unregister_code(KC_NUMLOCK); + } +} |