Convert Dip Switch callbacks to boolean functions (#13399)
This commit is contained in:
@@ -30,7 +30,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:
|
||||
@@ -39,4 +39,5 @@ void dip_switch_update_user(uint8_t index, bool active) {
|
||||
}
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user