Browse Source

Fix pointing_device_set_cpi_on_side() (#23391)

Co-authored-by: Less/Rikki <86894501+lesshonor@users.noreply.github.com>
pull/23125/merge 0.24.7
Taro Hayashi 4 weeks ago
committed by GitHub
parent
commit
c70ebd4a0e
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      quantum/pointing_device/pointing_device.c

+ 1
- 1
quantum/pointing_device/pointing_device.c View File

@ -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 {


Loading…
Cancel
Save