summaryrefslogtreecommitdiffstats
path: root/keyboards/ergodox/keymaps
diff options
context:
space:
mode:
authorStick <nstickney@gmail.com>2017-06-08 08:59:30 -0500
committerStick <nstickney@gmail.com>2017-06-08 08:59:30 -0500
commit5a70cb30eecc8b76410e4b21a225b10c344e12c7 (patch)
treeadbeb4f91a5c01765bcf20ada12d0e8e4612c411 /keyboards/ergodox/keymaps
parent3af2bca1fc948e17ca53809f483495d75b900310 (diff)
trying to fix LEDs
Diffstat (limited to 'keyboards/ergodox/keymaps')
-rw-r--r--keyboards/ergodox/keymaps/familiar/keymap.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/keyboards/ergodox/keymaps/familiar/keymap.c b/keyboards/ergodox/keymaps/familiar/keymap.c
index 513bb5541c..1dd1d5cbc1 100644
--- a/keyboards/ergodox/keymaps/familiar/keymap.c
+++ b/keyboards/ergodox/keymaps/familiar/keymap.c
@@ -242,26 +242,26 @@ void matrix_init_user(void) {
// Runs constantly in the background, in a loop.
void matrix_scan_user(void) {
- // uint8_t layer = biton32(layer_state);
- //
- // ergodox_board_led_off();
- // ergodox_right_led_1_off();
- // ergodox_right_led_2_off();
- // ergodox_right_led_3_off();
- // switch (layer) {
- // case INTL:
- // case INSF:
- // ergodox_right_led_1_on();
- // break;
- // case NUMP:
- // ergodox_right_led_2_on();
- // break;
- // case ARRW:
- // ergodox_right_led_3_on();
- // break;
- // default:
- // // none
- // break;
- // }
+ uint8_t layer = biton32(layer_state);
+
+ ergodox_board_led_off();
+ ergodox_right_led_1_off();
+ ergodox_right_led_2_off();
+ ergodox_right_led_3_off();
+ switch (layer) {
+ case INTL:
+ case INSF:
+ ergodox_right_led_1_on();
+ break;
+ case NUMP:
+ ergodox_right_led_2_on();
+ break;
+ case ARRW:
+ ergodox_right_led_3_on();
+ break;
+ default:
+ // none
+ break;
+ }
};