Convert Dip Switch callbacks to boolean functions (#13399)
This commit is contained in:
@@ -61,10 +61,10 @@ void matrix_scan_kb(void) {
|
||||
|
||||
#ifdef DIP_SWITCH_ENABLE
|
||||
__attribute__((weak))
|
||||
void dip_update(uint8_t index, bool active) {}
|
||||
bool dip_update(uint8_t index, bool active) { return true; }
|
||||
|
||||
__attribute__((weak))
|
||||
void dip_switch_update_user(uint8_t index, bool active) {
|
||||
dip_update(index, active);
|
||||
bool dip_switch_update_user(uint8_t index, bool active) {
|
||||
return dip_update(index, active);
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user