diff options
| author | QMK Bot <hello@qmk.fm> | 2022-02-12 10:29:31 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-12 18:29:31 +0000 |
| commit | 63646e8906e062d1c1de3925cba70c4e3426a855 (patch) | |
| tree | 4e91648b77b838e1125cf86331d7e84bde6d07a9 /quantum/dip_switch.c | |
| parent | afcdd7079c774dec2aa4b7f2d08adf8b7310919b (diff) | |
Format code according to conventions (#16322)
Diffstat (limited to 'quantum/dip_switch.c')
| -rw-r--r-- | quantum/dip_switch.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/quantum/dip_switch.c b/quantum/dip_switch.c index 133ec85027..eee29aaf91 100644 --- a/quantum/dip_switch.c +++ b/quantum/dip_switch.c | |||
| @@ -52,13 +52,21 @@ static uint16_t scan_count; | |||
| 52 | static bool dip_switch_state[NUMBER_OF_DIP_SWITCHES] = {0}; | 52 | static bool dip_switch_state[NUMBER_OF_DIP_SWITCHES] = {0}; |
| 53 | static bool last_dip_switch_state[NUMBER_OF_DIP_SWITCHES] = {0}; | 53 | static bool last_dip_switch_state[NUMBER_OF_DIP_SWITCHES] = {0}; |
| 54 | 54 | ||
| 55 | __attribute__((weak)) bool dip_switch_update_user(uint8_t index, bool active) { return true; } | 55 | __attribute__((weak)) bool dip_switch_update_user(uint8_t index, bool active) { |
| 56 | return true; | ||
| 57 | } | ||
| 56 | 58 | ||
| 57 | __attribute__((weak)) bool dip_switch_update_kb(uint8_t index, bool active) { return dip_switch_update_user(index, active); } | 59 | __attribute__((weak)) bool dip_switch_update_kb(uint8_t index, bool active) { |
| 60 | return dip_switch_update_user(index, active); | ||
| 61 | } | ||
| 58 | 62 | ||
| 59 | __attribute__((weak)) bool dip_switch_update_mask_user(uint32_t state) { return true; } | 63 | __attribute__((weak)) bool dip_switch_update_mask_user(uint32_t state) { |
| 64 | return true; | ||
| 65 | } | ||
| 60 | 66 | ||
| 61 | __attribute__((weak)) bool dip_switch_update_mask_kb(uint32_t state) { return dip_switch_update_mask_user(state); } | 67 | __attribute__((weak)) bool dip_switch_update_mask_kb(uint32_t state) { |
| 68 | return dip_switch_update_mask_user(state); | ||
| 69 | } | ||
| 62 | 70 | ||
| 63 | void dip_switch_init(void) { | 71 | void dip_switch_init(void) { |
| 64 | #ifdef DIP_SWITCH_PINS | 72 | #ifdef DIP_SWITCH_PINS |
