diff options
Diffstat (limited to 'keyboards/ergodox_ez/keymaps/default/keymap.c')
| -rw-r--r-- | keyboards/ergodox_ez/keymaps/default/keymap.c | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/keyboards/ergodox_ez/keymaps/default/keymap.c b/keyboards/ergodox_ez/keymaps/default/keymap.c index cbc180d6a..4f0136880 100644 --- a/keyboards/ergodox_ez/keymaps/default/keymap.c +++ b/keyboards/ergodox_ez/keymaps/default/keymap.c | |||
| @@ -150,19 +150,19 @@ const uint16_t PROGMEM fn_actions[] = { | |||
| 150 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) | 150 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) |
| 151 | { | 151 | { |
| 152 | // MACRODOWN only works in this function | 152 | // MACRODOWN only works in this function |
| 153 | switch(id) { | 153 | switch(id) { |
| 154 | case 0: | 154 | case 0: |
| 155 | if (record->event.pressed) { | 155 | if (record->event.pressed) { |
| 156 | SEND_STRING (QMK_KEYBOARD "/" QMK_KEYMAP " @ " QMK_VERSION); | 156 | SEND_STRING (QMK_KEYBOARD "/" QMK_KEYMAP " @ " QMK_VERSION); |
| 157 | } | 157 | } |
| 158 | break; | 158 | break; |
| 159 | case 1: | 159 | case 1: |
| 160 | if (record->event.pressed) { // For resetting EEPROM | 160 | if (record->event.pressed) { // For resetting EEPROM |
| 161 | eeconfig_init(); | 161 | eeconfig_init(); |
| 162 | } | ||
| 163 | break; | ||
| 164 | } | 162 | } |
| 165 | return MACRO_NONE; | 163 | break; |
| 164 | } | ||
| 165 | return MACRO_NONE; | ||
| 166 | }; | 166 | }; |
| 167 | 167 | ||
| 168 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | 168 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { |
| @@ -201,23 +201,23 @@ void matrix_init_user(void) { | |||
| 201 | // Runs constantly in the background, in a loop. | 201 | // Runs constantly in the background, in a loop. |
| 202 | void matrix_scan_user(void) { | 202 | void matrix_scan_user(void) { |
| 203 | 203 | ||
| 204 | uint8_t layer = biton32(layer_state); | 204 | uint8_t layer = biton32(layer_state); |
| 205 | 205 | ||
| 206 | ergodox_board_led_off(); | 206 | ergodox_board_led_off(); |
| 207 | ergodox_right_led_1_off(); | 207 | ergodox_right_led_1_off(); |
| 208 | ergodox_right_led_2_off(); | 208 | ergodox_right_led_2_off(); |
| 209 | ergodox_right_led_3_off(); | 209 | ergodox_right_led_3_off(); |
| 210 | switch (layer) { | 210 | switch (layer) { |
| 211 | // TODO: Make this relevant to the ErgoDox EZ. | 211 | // TODO: Make this relevant to the ErgoDox EZ. |
| 212 | case 1: | 212 | case SYMB: |
| 213 | ergodox_right_led_1_on(); | 213 | ergodox_right_led_1_on(); |
| 214 | break; | 214 | break; |
| 215 | case 2: | 215 | case MDIA: |
| 216 | ergodox_right_led_2_on(); | 216 | ergodox_right_led_2_on(); |
| 217 | break; | 217 | break; |
| 218 | default: | 218 | default: |
| 219 | // none | 219 | // none |
| 220 | break; | 220 | break; |
| 221 | } | 221 | } |
| 222 | 222 | ||
| 223 | }; | 223 | }; |
