aboutsummaryrefslogtreecommitdiff
path: root/quantum/dip_switch.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/dip_switch.c')
-rw-r--r--quantum/dip_switch.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/quantum/dip_switch.c b/quantum/dip_switch.c
index cda69bd0e..72789ca8e 100644
--- a/quantum/dip_switch.c
+++ b/quantum/dip_switch.c
@@ -49,13 +49,13 @@ static uint16_t scan_count;
49static bool dip_switch_state[NUMBER_OF_DIP_SWITCHES] = {0}; 49static bool dip_switch_state[NUMBER_OF_DIP_SWITCHES] = {0};
50static bool last_dip_switch_state[NUMBER_OF_DIP_SWITCHES] = {0}; 50static bool last_dip_switch_state[NUMBER_OF_DIP_SWITCHES] = {0};
51 51
52__attribute__((weak)) void dip_switch_update_user(uint8_t index, bool active) {} 52__attribute__((weak)) bool dip_switch_update_user(uint8_t index, bool active) { return true; }
53 53
54__attribute__((weak)) void dip_switch_update_kb(uint8_t index, bool active) { dip_switch_update_user(index, active); } 54__attribute__((weak)) bool dip_switch_update_kb(uint8_t index, bool active) { return dip_switch_update_user(index, active); }
55 55
56__attribute__((weak)) void dip_switch_update_mask_user(uint32_t state) {} 56__attribute__((weak)) bool dip_switch_update_mask_user(uint32_t state) { return true; }
57 57
58__attribute__((weak)) void dip_switch_update_mask_kb(uint32_t state) { dip_switch_update_mask_user(state); } 58__attribute__((weak)) bool dip_switch_update_mask_kb(uint32_t state) { return dip_switch_update_mask_user(state); }
59 59
60void dip_switch_init(void) { 60void dip_switch_init(void) {
61#ifdef DIP_SWITCH_PINS 61#ifdef DIP_SWITCH_PINS