[cleanup] consistent 2 space indentation

Was mixed between 2&4
pull/1812/head^2
Campbell Barton 7 years ago committed by Jack Humbert
parent e446eddca9
commit c206650ed0

@ -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) const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
{ {
// MACRODOWN only works in this function // MACRODOWN only works in this function
switch(id) { switch(id) {
case 0: case 0:
if (record->event.pressed) { if (record->event.pressed) {
SEND_STRING (QMK_KEYBOARD "/" QMK_KEYMAP " @ " QMK_VERSION); SEND_STRING (QMK_KEYBOARD "/" QMK_KEYMAP " @ " QMK_VERSION);
} }
break; break;
case 1: case 1:
if (record->event.pressed) { // For resetting EEPROM if (record->event.pressed) { // For resetting EEPROM
eeconfig_init(); eeconfig_init();
}
break;
} }
return MACRO_NONE; break;
}
return MACRO_NONE;
}; };
bool process_record_user(uint16_t keycode, keyrecord_t *record) { 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. // Runs constantly in the background, in a loop.
void matrix_scan_user(void) { void matrix_scan_user(void) {
uint8_t layer = biton32(layer_state); uint8_t layer = biton32(layer_state);
ergodox_board_led_off(); ergodox_board_led_off();
ergodox_right_led_1_off(); ergodox_right_led_1_off();
ergodox_right_led_2_off(); ergodox_right_led_2_off();
ergodox_right_led_3_off(); ergodox_right_led_3_off();
switch (layer) { switch (layer) {
// TODO: Make this relevant to the ErgoDox EZ. // TODO: Make this relevant to the ErgoDox EZ.
case 1: case SYMB:
ergodox_right_led_1_on(); ergodox_right_led_1_on();
break; break;
case 2: case MDIA:
ergodox_right_led_2_on(); ergodox_right_led_2_on();
break; break;
default: default:
// none // none
break; break;
} }
}; };

@ -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) const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
{ {
// MACRODOWN only works in this function // MACRODOWN only works in this function
switch(id) { switch(id) {
case 0: case 0:
if (record->event.pressed) { if (record->event.pressed) {
register_code(KC_RSFT); register_code(KC_RSFT);
} else { } else {
unregister_code(KC_RSFT); unregister_code(KC_RSFT);
}
break;
} }
return MACRO_NONE; break;
}
return MACRO_NONE;
}; };
// Runs just one time when the keyboard initializes. // 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. // Runs constantly in the background, in a loop.
void matrix_scan_user(void) { void matrix_scan_user(void) {
uint8_t layer = biton32(layer_state); uint8_t layer = biton32(layer_state);
ergodox_board_led_off(); ergodox_board_led_off();
ergodox_right_led_1_off(); ergodox_right_led_1_off();
ergodox_right_led_2_off(); ergodox_right_led_2_off();
ergodox_right_led_3_off(); ergodox_right_led_3_off();
switch (layer) { switch (layer) {
// TODO: Make this relevant to the ErgoDox EZ. // TODO: Make this relevant to the ErgoDox EZ.
case 1: case SYMB:
ergodox_right_led_1_on(); ergodox_right_led_1_on();
break; break;
case 2: case MDIA:
ergodox_right_led_2_on(); ergodox_right_led_2_on();
break; break;
default: default:
// none // none
break; break;
} }
}; };

Loading…
Cancel
Save