From 80a1b9b46dfd21796ce5517c4b586279efdfe968 Mon Sep 17 00:00:00 2001 From: Avery Black Date: Mon, 21 Oct 2024 08:49:24 -0700 Subject: [PATCH] Fix only reading last finger --- VoodooRMI/Functions/F12.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VoodooRMI/Functions/F12.cpp b/VoodooRMI/Functions/F12.cpp index c54f335..6610997 100644 --- a/VoodooRMI/Functions/F12.cpp +++ b/VoodooRMI/Functions/F12.cpp @@ -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: