Skip to content

Commit

Permalink
Fixed error in parsing relative packet
Browse files Browse the repository at this point in the history
  • Loading branch information
hanipouspilot committed Apr 17, 2015
1 parent 517fc16 commit 553f00a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions init.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ void parse_packet(unsigned char *data)
fingers[finger1].y += (int8_t)data[2];
int finger2 = ((data[3] >> 4) & 0x7) - 1;
if (finger2 != -1) {
fingers[finger2].x += (int8_t)data[1];
fingers[finger2].y += (int8_t)data[2];
fingers[finger2].x += (int8_t)data[4];
fingers[finger2].y += (int8_t)data[5];
}
clicked = data[0] >> 7;
} else {
Expand Down

0 comments on commit 553f00a

Please sign in to comment.