diff options
author | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2019-02-26 02:03:36 +0100 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-02-26 02:03:36 +0100 |
commit | d7e3d718d0bd0225c8f2887561cd483461c0a04c (patch) | |
tree | b882630471cefdc396f80b46e222a266b9bd6490 /keyboards/1upkeyboards/1up60hte | |
parent | da5e9043061ae3baadc7922acddf15dc92bffb7b (diff) | |
download | qmk_firmware-d7e3d718d0bd0225c8f2887561cd483461c0a04c.tar.gz qmk_firmware-d7e3d718d0bd0225c8f2887561cd483461c0a04c.tar.xz |
Some minor refactoring of boards in 1upkeyboards directory (#5236)
* use #pragma once
* get rid of code for unused indicators
* pragma once and other small fixes for consistency
* use #pragma once
* pragma once and other small fixes for consistency
* add a short blurb to the readme
* turn on compiler optimization flags
* remove the compiler optimization
* remove compiler optimization for super16
Diffstat (limited to 'keyboards/1upkeyboards/1up60hte')
-rw-r--r-- | keyboards/1upkeyboards/1up60hte/keymaps/default/keymap.c | 28 | ||||
-rw-r--r-- | keyboards/1upkeyboards/1up60hte/rules.mk | 1 |
2 files changed, 2 insertions, 27 deletions
diff --git a/keyboards/1upkeyboards/1up60hte/keymaps/default/keymap.c b/keyboards/1upkeyboards/1up60hte/keymaps/default/keymap.c index 396b66080..8c3916629 100644 --- a/keyboards/1upkeyboards/1up60hte/keymaps/default/keymap.c +++ b/keyboards/1upkeyboards/1up60hte/keymaps/default/keymap.c @@ -46,35 +46,9 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { } void led_set_user(uint8_t usb_led) { - - if (usb_led & (1 << USB_LED_NUM_LOCK)) { - - } else { - - } - - if (usb_led & (1 << USB_LED_CAPS_LOCK)) { + if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) { writePinLow(B6); } else { writePinHigh(B6); } - - if (usb_led & (1 << USB_LED_SCROLL_LOCK)) { - - } else { - - } - - if (usb_led & (1 << USB_LED_COMPOSE)) { - - } else { - - } - - if (usb_led & (1 << USB_LED_KANA)) { - - } else { - - } - } diff --git a/keyboards/1upkeyboards/1up60hte/rules.mk b/keyboards/1upkeyboards/1up60hte/rules.mk index b8b558299..860a754a6 100644 --- a/keyboards/1upkeyboards/1up60hte/rules.mk +++ b/keyboards/1upkeyboards/1up60hte/rules.mk @@ -54,5 +54,6 @@ NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https:/ BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality AUDIO_ENABLE = no RGBLIGHT_ENABLE = yes +EXTRAFLAGS += -flto LAYOUTS = 60_hhkb |