Skip to content

Commit

Permalink
Fix only reading last finger
Browse files Browse the repository at this point in the history
  • Loading branch information
1Revenger1 committed Oct 21, 2024
1 parent 47ae60e commit 80a1b9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion VoodooRMI/Functions/F12.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ void F12::attention(AbsoluteTime time, UInt8 *data[], size_t *size)
int fingers = min (nbr_fingers, 5);
for (int i = 0; i < fingers; i++) {
rmi_2d_sensor_abs_object &obj = report.objs[i];
UInt8 *fingerData = &data_pkt[offset + (fingers * F12_DATA1_BYTES_PER_OBJ)];
UInt8 *fingerData = &data_pkt[offset + (i * F12_DATA1_BYTES_PER_OBJ)];

switch (fingerData[0]) {
case RMI_F12_OBJECT_FINGER:
Expand Down

0 comments on commit 80a1b9b

Please sign in to comment.