Convert Dip Switch callbacks to boolean functions (#13399)
This commit is contained in:
parent
8f78be076d
commit
0bde920817
40 changed files with 117 additions and 75 deletions
|
@ -276,7 +276,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) {
|
||||
|
@ -292,6 +292,7 @@ void dip_switch_update_user(uint8_t index, bool active) {
|
|||
muse_mode = false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -263,7 +263,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) {
|
||||
|
@ -279,6 +279,7 @@ void dip_switch_update_user(uint8_t index, bool active) {
|
|||
muse_mode = false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -190,7 +190,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) {
|
||||
|
@ -206,6 +206,7 @@ void dip_switch_update_user(uint8_t index, bool active) {
|
|||
muse_mode = false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -257,7 +257,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) {
|
||||
|
@ -273,6 +273,7 @@ void dip_switch_update_user(uint8_t index, bool active) {
|
|||
muse_mode = false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -264,7 +264,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) {
|
||||
|
@ -280,6 +280,7 @@ void dip_switch_update_user(uint8_t index, bool active) {
|
|||
muse_mode = false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -327,7 +327,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) {
|
||||
|
@ -343,6 +343,7 @@ void dip_switch_update_user(uint8_t index, bool active) {
|
|||
muse_mode = false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void matrix_scan_user(void) {
|
||||
|
|
|
@ -554,7 +554,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) {
|
||||
|
@ -570,6 +570,7 @@ void dip_switch_update_user(uint8_t index, bool active) {
|
|||
muse_mode = false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void matrix_scan_user(void) {
|
||||
|
|
|
@ -273,7 +273,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) {
|
||||
|
@ -289,6 +289,7 @@ void dip_switch_update_user(uint8_t index, bool active) {
|
|||
muse_mode = false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -459,7 +459,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) {
|
||||
|
@ -475,6 +475,7 @@ void dip_switch_update_user(uint8_t index, bool active) {
|
|||
muse_mode = false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void matrix_scan_user(void) {
|
||||
|
|
|
@ -395,7 +395,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) {
|
||||
|
@ -411,4 +411,5 @@ void dip_switch_update_user(uint8_t index, bool active) {
|
|||
muse_mode = false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -257,7 +257,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) {
|
||||
|
@ -273,6 +273,7 @@ void dip_switch_update_user(uint8_t index, bool active) {
|
|||
muse_mode = false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -345,7 +345,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) {
|
||||
|
@ -361,6 +361,7 @@ void dip_switch_update_user(uint8_t index, bool active) {
|
|||
muse_mode = false;
|
||||
}
|
||||
}
|
||||
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