Convert Dip Switch callbacks to boolean functions (#13399)
This commit is contained in:
@@ -30,7 +30,7 @@ void set_mac_mode(bool macmode) {
|
||||
eeconfig_update_keymap(keymap_config.raw);
|
||||
}
|
||||
|
||||
void dip_switch_update_kb(uint8_t index, bool active) {
|
||||
bool dip_switch_update_kb(uint8_t index, bool active) {
|
||||
switch (index) {
|
||||
case 0:
|
||||
if(active) { // Left no.1 Helix rev3 common
|
||||
@@ -43,4 +43,5 @@ void dip_switch_update_kb(uint8_t index, bool active) {
|
||||
dip_switch_update_user(index, active);
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user