Skip to content

Commit

Permalink
Fix pointing_device_set_cpi_on_side() (#23391)
Browse files Browse the repository at this point in the history
Co-authored-by: Less/Rikki <86894501+lesshonor@users.noreply.github.com>
  • Loading branch information
Taro-Hayashi and lesshonor authored Apr 4, 2024
1 parent 2a4c746 commit c70ebd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quantum/pointing_device/pointing_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ void pointing_device_set_cpi(uint16_t cpi) {
* @param[in] cpi uint16_t value.
*/
void pointing_device_set_cpi_on_side(bool left, uint16_t cpi) {
bool local = (is_keyboard_left() & left) ? true : false;
bool local = (is_keyboard_left() == left);
if (local) {
pointing_device_driver.set_cpi(cpi);
} else {
Expand Down

0 comments on commit c70ebd4

Please sign in to comment.