Update apdu.cpp

fix short acpi detection
This commit is contained in:
thelsing 2019-10-23 22:16:48 +02:00 committed by GitHub
parent 3063bf8195
commit eaab7d7548
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ ApduType APDU::type()
apci = getWord(_data);
popWord(apci, _data);
apci &= 0x3ff;
if ((apci >> 6) < 11) //short apci
if ((apci >> 6) < 11 && (apci >> 6) != 7) //short apci
apci &= 0x3c0;
return (ApduType)apci;
}