Convert Dip Switch callbacks to boolean functions (#13399)
This commit is contained in:
@@ -108,7 +108,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
}
|
||||
|
||||
|
||||
void dip_switch_update_user(uint8_t index, bool active) {
|
||||
bool dip_switch_update_user(uint8_t index, bool active) {
|
||||
switch (index) {
|
||||
case 0:
|
||||
if(active) {
|
||||
@@ -125,6 +125,7 @@ void dip_switch_update_user(uint8_t index, bool active) {
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user