mirror of
https://github.com/qmk/qmk_userspace.git
synced 2025-05-08 00:24:16 -04:00
Convert Dip Switch callbacks to boolean functions (#13399)
This commit is contained in:
parent
cddd5a2715
commit
c0c8c47289
2 changed files with 4 additions and 2 deletions
|
@ -45,7 +45,7 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
|
|||
}
|
||||
|
||||
// Encoder click function
|
||||
void dip_switch_update_user(uint8_t index, bool active) {
|
||||
bool dip_switch_update_user(uint8_t index, bool active) {
|
||||
switch (index) {
|
||||
/* First encoder */
|
||||
case 0:
|
||||
|
@ -54,4 +54,5 @@ void dip_switch_update_user(uint8_t index, bool active) {
|
|||
}
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -147,7 +147,7 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
|
|||
return true;
|
||||
}
|
||||
|
||||
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) {
|
||||
|
@ -163,6 +163,7 @@ void dip_switch_update_user(uint8_t index, bool active) {
|
|||
muse_mode = false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue