From c70ebd4a0e27009a9baf4c8f74379dae6c55b461 Mon Sep 17 00:00:00 2001 From: Taro Hayashi <87086895+Taro-Hayashi@users.noreply.github.com> Date: Thu, 4 Apr 2024 12:39:02 +0900 Subject: [PATCH] Fix pointing_device_set_cpi_on_side() (#23391) Co-authored-by: Less/Rikki <86894501+lesshonor@users.noreply.github.com> --- quantum/pointing_device/pointing_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quantum/pointing_device/pointing_device.c b/quantum/pointing_device/pointing_device.c index bcced166c0..4682aceb14 100644 --- a/quantum/pointing_device/pointing_device.c +++ b/quantum/pointing_device/pointing_device.c @@ -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 {