mirror of
https://github.com/firewalkwithm3/qmk_firmware.git
synced 2024-11-22 19:40:29 +08:00
Fix pointing_device_set_cpi_on_side() (#23391)
Co-authored-by: Less/Rikki <86894501+lesshonor@users.noreply.github.com>
This commit is contained in:
parent
2a4c746718
commit
c70ebd4a0e
|
@ -368,7 +368,7 @@ void pointing_device_set_cpi(uint16_t cpi) {
|
||||||
* @param[in] cpi uint16_t value.
|
* @param[in] cpi uint16_t value.
|
||||||
*/
|
*/
|
||||||
void pointing_device_set_cpi_on_side(bool left, uint16_t cpi) {
|
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) {
|
if (local) {
|
||||||
pointing_device_driver.set_cpi(cpi);
|
pointing_device_driver.set_cpi(cpi);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue