aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/ergodox_ez/keymaps/default_osx
diff options
context:
space:
mode:
authorGravatar Campbell Barton <ideasman42@gmail.com>2017-09-30 16:47:40 +1000
committerGravatar Jack Humbert <jack.humb@gmail.com>2017-10-05 07:28:42 -1000
commitc206650ed0bfbbdffa603023bcf3c6ba7f8f37aa (patch)
tree2f32be75dd3edcdf270439cbbda52b27fd5daf86 /keyboards/ergodox_ez/keymaps/default_osx
parente446eddca9f838f0c7f4784cfac2d083a018ba21 (diff)
downloadqmk_firmware-c206650ed0bfbbdffa603023bcf3c6ba7f8f37aa.tar.gz
[cleanup] consistent 2 space indentation
Was mixed between 2&4
Diffstat (limited to 'keyboards/ergodox_ez/keymaps/default_osx')
-rw-r--r--keyboards/ergodox_ez/keymaps/default_osx/keymap.c52
1 files changed, 26 insertions, 26 deletions
diff --git a/keyboards/ergodox_ez/keymaps/default_osx/keymap.c b/keyboards/ergodox_ez/keymaps/default_osx/keymap.c
index 947c8a007..038940772 100644
--- a/keyboards/ergodox_ez/keymaps/default_osx/keymap.c
+++ b/keyboards/ergodox_ez/keymaps/default_osx/keymap.c
@@ -145,16 +145,16 @@ 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) {
- register_code(KC_RSFT);
- } else {
- unregister_code(KC_RSFT);
- }
- break;
+ switch(id) {
+ case 0:
+ if (record->event.pressed) {
+ register_code(KC_RSFT);
+ } else {
+ unregister_code(KC_RSFT);
}
- return MACRO_NONE;
+ break;
+ }
+ return MACRO_NONE;
};
// Runs just one time when the keyboard initializes.
@@ -165,23 +165,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;
+ }
};