diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2021-02-28 15:53:54 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-28 15:53:54 +0000 |
commit | b2f5bd7c60282ab8abc04d480f6348e0b8482436 (patch) | |
tree | a7cf4e53eae244b2b311a8c36e8a6b55c5ed67f0 | |
parent | 5ba4391cf29ce624f17593417212b3dbca1609ad (diff) | |
download | qmk_firmware-b2f5bd7c60282ab8abc04d480f6348e0b8482436.tar.gz qmk_firmware-b2f5bd7c60282ab8abc04d480f6348e0b8482436.zip |
Format code according to conventions (#12056)
Co-authored-by: QMK Bot <hello@qmk.fm>
-rw-r--r-- | quantum/bootmagic/bootmagic_full.c | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/quantum/bootmagic/bootmagic_full.c b/quantum/bootmagic/bootmagic_full.c index 18c28cde8..a7a0dcfcb 100644 --- a/quantum/bootmagic/bootmagic_full.c +++ b/quantum/bootmagic/bootmagic_full.c | |||
@@ -121,26 +121,19 @@ void bootmagic(void) { | |||
121 | uint8_t default_layer = 0; | 121 | uint8_t default_layer = 0; |
122 | if (bootmagic_scan_keycode(BOOTMAGIC_KEY_DEFAULT_LAYER_0)) { | 122 | if (bootmagic_scan_keycode(BOOTMAGIC_KEY_DEFAULT_LAYER_0)) { |
123 | default_layer |= (1 << 0); | 123 | default_layer |= (1 << 0); |
124 | } | 124 | } else if (bootmagic_scan_keycode(BOOTMAGIC_KEY_DEFAULT_LAYER_1)) { |
125 | else if (bootmagic_scan_keycode(BOOTMAGIC_KEY_DEFAULT_LAYER_1)) { | ||
126 | default_layer |= (1 << 1); | 125 | default_layer |= (1 << 1); |
127 | } | 126 | } else if (bootmagic_scan_keycode(BOOTMAGIC_KEY_DEFAULT_LAYER_2)) { |
128 | else if (bootmagic_scan_keycode(BOOTMAGIC_KEY_DEFAULT_LAYER_2)) { | ||
129 | default_layer |= (1 << 2); | 127 | default_layer |= (1 << 2); |
130 | } | 128 | } else if (bootmagic_scan_keycode(BOOTMAGIC_KEY_DEFAULT_LAYER_3)) { |
131 | else if (bootmagic_scan_keycode(BOOTMAGIC_KEY_DEFAULT_LAYER_3)) { | ||
132 | default_layer |= (1 << 3); | 129 | default_layer |= (1 << 3); |
133 | } | 130 | } else if (bootmagic_scan_keycode(BOOTMAGIC_KEY_DEFAULT_LAYER_4)) { |
134 | else if (bootmagic_scan_keycode(BOOTMAGIC_KEY_DEFAULT_LAYER_4)) { | ||
135 | default_layer |= (1 << 4); | 131 | default_layer |= (1 << 4); |
136 | } | 132 | } else if (bootmagic_scan_keycode(BOOTMAGIC_KEY_DEFAULT_LAYER_5)) { |
137 | else if (bootmagic_scan_keycode(BOOTMAGIC_KEY_DEFAULT_LAYER_5)) { | ||
138 | default_layer |= (1 << 5); | 133 | default_layer |= (1 << 5); |
139 | } | 134 | } else if (bootmagic_scan_keycode(BOOTMAGIC_KEY_DEFAULT_LAYER_6)) { |
140 | else if (bootmagic_scan_keycode(BOOTMAGIC_KEY_DEFAULT_LAYER_6)) { | ||
141 | default_layer |= (1 << 6); | 135 | default_layer |= (1 << 6); |
142 | } | 136 | } else if (bootmagic_scan_keycode(BOOTMAGIC_KEY_DEFAULT_LAYER_7)) { |
143 | else if (bootmagic_scan_keycode(BOOTMAGIC_KEY_DEFAULT_LAYER_7)) { | ||
144 | default_layer |= (1 << 7); | 137 | default_layer |= (1 << 7); |
145 | } | 138 | } |
146 | eeconfig_update_default_layer(default_layer); | 139 | eeconfig_update_default_layer(default_layer); |
@@ -148,8 +141,7 @@ void bootmagic(void) { | |||
148 | /* EE_HANDS handedness */ | 141 | /* EE_HANDS handedness */ |
149 | if (bootmagic_scan_keycode(BOOTMAGIC_KEY_EE_HANDS_LEFT)) { | 142 | if (bootmagic_scan_keycode(BOOTMAGIC_KEY_EE_HANDS_LEFT)) { |
150 | eeconfig_update_handedness(true); | 143 | eeconfig_update_handedness(true); |
151 | } | 144 | } else if (bootmagic_scan_keycode(BOOTMAGIC_KEY_EE_HANDS_RIGHT)) { |
152 | else if (bootmagic_scan_keycode(BOOTMAGIC_KEY_EE_HANDS_RIGHT)) { | ||
153 | eeconfig_update_handedness(false); | 145 | eeconfig_update_handedness(false); |
154 | } | 146 | } |
155 | } | 147 | } |