summaryrefslogtreecommitdiff
path: root/keyboards/ergodox_ez/keymaps/default
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2017-09-30 16:47:40 +1000
committerJack Humbert <jack.humb@gmail.com>2017-10-05 07:28:42 -1000
commitc206650ed0bfbbdffa603023bcf3c6ba7f8f37aa (patch)
tree2f32be75dd3edcdf270439cbbda52b27fd5daf86 /keyboards/ergodox_ez/keymaps/default
parente446eddca9f838f0c7f4784cfac2d083a018ba21 (diff)
downloadqmk_firmware-c206650ed0bfbbdffa603023bcf3c6ba7f8f37aa.tar.gz
qmk_firmware-c206650ed0bfbbdffa603023bcf3c6ba7f8f37aa.zip
[cleanup] consistent 2 space indentation
Was mixed between 2&4
Diffstat (limited to 'keyboards/ergodox_ez/keymaps/default')
-rw-r--r--keyboards/ergodox_ez/keymaps/default/keymap.c58
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 cbc180d6a0..4f0136880e 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[] = {
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
{
// MACRODOWN only works in this function
- switch(id) {
- case 0:
- if (record->event.pressed) {
- SEND_STRING (QMK_KEYBOARD "/" QMK_KEYMAP " @ " QMK_VERSION);
- }
- break;
- case 1:
- if (record->event.pressed) { // For resetting EEPROM
- eeconfig_init();
- }
- break;
+ switch(id) {
+ case 0:
+ if (record->event.pressed) {
+ SEND_STRING (QMK_KEYBOARD "/" QMK_KEYMAP " @ " QMK_VERSION);
+ }
+ break;
+ case 1:
+ if (record->event.pressed) { // For resetting EEPROM
+ eeconfig_init();
}
- return MACRO_NONE;
+ break;
+ }
+ return MACRO_NONE;
};
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
@@ -201,23 +201,23 @@ void matrix_init_user(void) {
// Runs constantly in the background, in a loop.
void matrix_scan_user(void) {
- uint8_t layer = biton32(layer_state);
+ 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) {
- // TODO: Make this relevant to the ErgoDox EZ.
- case 1:
- ergodox_right_led_1_on();
- break;
- case 2:
- ergodox_right_led_2_on();
- break;
- default:
- // none
- break;
- }
+ ergodox_board_led_off();
+ ergodox_right_led_1_off();
+ ergodox_right_led_2_off();
+ ergodox_right_led_3_off();
+ switch (layer) {
+ // TODO: Make this relevant to the ErgoDox EZ.
+ case SYMB:
+ ergodox_right_led_1_on();
+ break;
+ case MDIA:
+ ergodox_right_led_2_on();
+ break;
+ default:
+ // none
+ break;
+ }
};