diff options
| author | Drashna Jaelre <drashna@live.com> | 2021-07-01 08:22:21 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-01 08:22:21 -0700 |
| commit | 0bde920817ef458f2ad61a66ce76a2535bbc261b (patch) | |
| tree | 9c7078bd67547fc44085cec1fbfbc82a47047161 /layouts | |
| parent | 8f78be076debfc073741f1bc1ba424f1271191d9 (diff) | |
| download | qmk_firmware-0bde920817ef458f2ad61a66ce76a2535bbc261b.tar.gz qmk_firmware-0bde920817ef458f2ad61a66ce76a2535bbc261b.zip | |
Convert Dip Switch callbacks to boolean functions (#13399)
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/community/ortho_4x12/brandonschlack/keymap.c | 3 | ||||
| -rw-r--r-- | layouts/community/ortho_4x12/mguterl/keymap.c | 3 | ||||
| -rw-r--r-- | layouts/community/ortho_5x12/brandonschlack/keymap.c | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/layouts/community/ortho_4x12/brandonschlack/keymap.c b/layouts/community/ortho_4x12/brandonschlack/keymap.c index ea9d29506..4877a0b44 100644 --- a/layouts/community/ortho_4x12/brandonschlack/keymap.c +++ b/layouts/community/ortho_4x12/brandonschlack/keymap.c | |||
| @@ -154,7 +154,7 @@ bool encoder_update_keymap(uint8_t index, bool clockwise) { | |||
| 154 | return true; | 154 | return true; |
| 155 | } | 155 | } |
| 156 | 156 | ||
| 157 | void dip_switch_update_user(uint8_t index, bool active) { | 157 | bool dip_switch_update_user(uint8_t index, bool active) { |
| 158 | switch (index) { | 158 | switch (index) { |
| 159 | case 0: { | 159 | case 0: { |
| 160 | #ifdef AUDIO_ENABLE | 160 | #ifdef AUDIO_ENABLE |
| @@ -183,6 +183,7 @@ void dip_switch_update_user(uint8_t index, bool active) { | |||
| 183 | muse_mode = false; | 183 | muse_mode = false; |
| 184 | } | 184 | } |
| 185 | } | 185 | } |
| 186 | return true; | ||
| 186 | } | 187 | } |
| 187 | 188 | ||
| 188 | void matrix_scan_keymap(void) { | 189 | void matrix_scan_keymap(void) { |
diff --git a/layouts/community/ortho_4x12/mguterl/keymap.c b/layouts/community/ortho_4x12/mguterl/keymap.c index 66039b61e..f18ae14d4 100644 --- a/layouts/community/ortho_4x12/mguterl/keymap.c +++ b/layouts/community/ortho_4x12/mguterl/keymap.c | |||
| @@ -290,7 +290,7 @@ bool encoder_update_user(uint8_t index, bool clockwise) { | |||
| 290 | return true; | 290 | return true; |
| 291 | } | 291 | } |
| 292 | 292 | ||
| 293 | void dip_switch_update_user(uint8_t index, bool active) { | 293 | bool dip_switch_update_user(uint8_t index, bool active) { |
| 294 | switch (index) { | 294 | switch (index) { |
| 295 | case 0: { | 295 | case 0: { |
| 296 | #ifdef AUDIO_ENABLE | 296 | #ifdef AUDIO_ENABLE |
| @@ -319,6 +319,7 @@ void dip_switch_update_user(uint8_t index, bool active) { | |||
| 319 | muse_mode = false; | 319 | muse_mode = false; |
| 320 | } | 320 | } |
| 321 | } | 321 | } |
| 322 | return true; | ||
| 322 | } | 323 | } |
| 323 | 324 | ||
| 324 | void matrix_scan_user(void) { | 325 | void matrix_scan_user(void) { |
diff --git a/layouts/community/ortho_5x12/brandonschlack/keymap.c b/layouts/community/ortho_5x12/brandonschlack/keymap.c index c9c94fc96..1b423157b 100644 --- a/layouts/community/ortho_5x12/brandonschlack/keymap.c +++ b/layouts/community/ortho_5x12/brandonschlack/keymap.c | |||
| @@ -149,7 +149,7 @@ bool encoder_update_keymap(uint8_t index, bool clockwise) { | |||
| 149 | return true; | 149 | return true; |
| 150 | } | 150 | } |
| 151 | 151 | ||
| 152 | void dip_switch_update_user(uint8_t index, bool active) { | 152 | bool dip_switch_update_user(uint8_t index, bool active) { |
| 153 | switch (index) { | 153 | switch (index) { |
| 154 | case 0: { | 154 | case 0: { |
| 155 | #ifdef AUDIO_ENABLE | 155 | #ifdef AUDIO_ENABLE |
| @@ -178,6 +178,7 @@ void dip_switch_update_user(uint8_t index, bool active) { | |||
| 178 | muse_mode = false; | 178 | muse_mode = false; |
| 179 | } | 179 | } |
| 180 | } | 180 | } |
| 181 | return true; | ||
| 181 | } | 182 | } |
| 182 | 183 | ||
| 183 | 184 | ||
