Skip to content

Commit

Permalink
Update trackpad.c
Browse files Browse the repository at this point in the history
  • Loading branch information
ReFil committed Feb 28, 2024
1 parent 897b3d3 commit d3e9b1a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/src/trackpad.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d3e9b1a

Please sign in to comment.