mirror of
https://github.com/qmk/qmk_userspace.git
synced 2025-05-08 08:34:17 -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
|
// 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) {
|
switch (index) {
|
||||||
/* First encoder */
|
/* First encoder */
|
||||||
case 0:
|
case 0:
|
||||||
|
@ -54,4 +54,5 @@ void dip_switch_update_user(uint8_t index, bool active) {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -147,7 +147,7 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void dip_switch_update_user(uint8_t index, bool active) {
|
bool dip_switch_update_user(uint8_t index, bool active) {
|
||||||
switch (index) {
|
switch (index) {
|
||||||
case 0:
|
case 0:
|
||||||
if (active) {
|
if (active) {
|
||||||
|
@ -163,6 +163,7 @@ void dip_switch_update_user(uint8_t index, bool active) {
|
||||||
muse_mode = false;
|
muse_mode = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue