From 7d732fefdadad89871f5dc45ed6f57583c51fbc1 Mon Sep 17 00:00:00 2001 From: CoolStar Date: Thu, 3 Nov 2016 12:16:08 -0700 Subject: [PATCH] Remove alps_is_valid_package_v7 from interrupt handler as it isn't needed and is only causing problems for us. --- Release 5/VoodooPS2Trackpad/alps.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/Release 5/VoodooPS2Trackpad/alps.cpp b/Release 5/VoodooPS2Trackpad/alps.cpp index dc3188a..e8d3220 100644 --- a/Release 5/VoodooPS2Trackpad/alps.cpp +++ b/Release 5/VoodooPS2Trackpad/alps.cpp @@ -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);