mirror of
https://github.com/qmk/qmk_userspace.git
synced 2025-05-11 01:54:18 -04:00
[Keyboard] fix encoder void to bool (#13334)
This commit is contained in:
parent
0b6ecefaca
commit
b2c880193f
1 changed files with 2 additions and 1 deletions
|
@ -51,7 +51,7 @@ void matrix_scan_user(void) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void encoder_update_user(uint8_t index, bool clockwise) {
|
bool encoder_update_user(uint8_t index, bool clockwise) {
|
||||||
if (clockwise) {
|
if (clockwise) {
|
||||||
encoder_cw.pressed = true;
|
encoder_cw.pressed = true;
|
||||||
encoder_cw.time = (timer_read() | 1);
|
encoder_cw.time = (timer_read() | 1);
|
||||||
|
@ -61,4 +61,5 @@ void encoder_update_user(uint8_t index, bool clockwise) {
|
||||||
encoder_ccw.time = (timer_read() | 1);
|
encoder_ccw.time = (timer_read() | 1);
|
||||||
action_exec(encoder_ccw);
|
action_exec(encoder_ccw);
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue