Skip to content

Commit

Permalink
Merge pull request DrHurt#3 from coolstar/Release-5
Browse files Browse the repository at this point in the history
Merge V7 and pre-V7 interruptOccurred handlers.
  • Loading branch information
DrHurt authored Nov 4, 2016
2 parents 6903017 + 7d732fe commit e93bd62
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions Release 5/VoodooPS2Trackpad/alps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,20 +292,6 @@ PS2InterruptResult ApplePS2ALPSGlidePoint::interruptOccurred(UInt8 data) {
return kPS2IR_packetBuffering;
}

/* alps_is_valid_package_v7 */
if (priv.proto_version == ALPS_PROTO_V7) {
if ((_packetByteCount == 3 && (packet[2] & 0x40) == 0x40) ||
(_packetByteCount == 4 && (packet[3] & 0x48) == 0x48) ||
(_packetByteCount == 6 && (packet[5] & 0x40) == 0x00))
{
_ringBuffer.advanceHead(priv.pktsize);
_packetByteCount = 0;
return kPS2IR_packetReady;
} else {
return kPS2IR_packetBuffering;
}
}

if (_packetByteCount == priv.pktsize)
{
_ringBuffer.advanceHead(priv.pktsize);
Expand Down

0 comments on commit e93bd62

Please sign in to comment.