From d3e9b1ad3e1814c9c082cbb32fe0078a5a81d9cf Mon Sep 17 00:00:00 2001 From: ReFil <31960031+ReFil@users.noreply.github.com> Date: Wed, 28 Feb 2024 19:13:43 +0000 Subject: [PATCH] Update trackpad.c --- app/src/trackpad.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/trackpad.c b/app/src/trackpad.c index 072551889da..c3559e26e8b 100644 --- a/app/src/trackpad.c +++ b/app/src/trackpad.c @@ -57,11 +57,11 @@ static void zmk_trackpad_tick(struct k_work *work) { LOG_DBG("total contacts: %d, received contacts: %d, bitmap contacts %d", present_contacts, received_contacts, contacts_to_send); - zmk_hid_ptp_set((contacts_to_send && BIT(0)) ? fingers[0] : empty_finger, - (contacts_to_send && BIT(1)) ? fingers[1] : empty_finger, - (contacts_to_send && BIT(2)) ? fingers[2] : empty_finger, - (contacts_to_send && BIT(3)) ? fingers[3] : empty_finger, - (contacts_to_send && BIT(4)) ? fingers[4] : empty_finger, present_contacts, + zmk_hid_ptp_set((contacts_to_send & BIT(0)) ? fingers[0] : empty_finger, + (contacts_to_send & BIT(1)) ? fingers[1] : empty_finger, + (contacts_to_send & BIT(2)) ? fingers[2] : empty_finger, + (contacts_to_send & BIT(3)) ? fingers[3] : empty_finger, + (contacts_to_send & BIT(4)) ? fingers[4] : empty_finger, present_contacts, scantime, button_mode ? btns : 0); zmk_endpoints_send_ptp_report(); contacts_to_send = 0;