Skip to content

Commit 14123e9

Browse files
cleanup touch_replay (commaai#34305)
mathematics
1 parent e98741f commit 14123e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

selfdrive/debug/touch_replay.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
elif event.type == 3 and event.code == 57 and event.value == -1:
3131
fingers[current_slot] = [-1, -1]
3232
elif event.type == 3 and event.code == 53:
33-
fingers[current_slot][1] = h - (h - event.value)
33+
fingers[current_slot][1] = event.value
3434
if fingers[current_slot][0] != -1:
3535
touch_points.append(fingers[current_slot].copy())
3636
elif event.type == 3 and event.code == 54:

0 commit comments

Comments
 (0)