mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-06-08 19:13:42 +02:00
Remove the tweak for packets multiple of 64 bytes. It was fixed in the USB stack handling (don't remember where).
Fixes #95. Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -224,9 +224,10 @@ void apdu_finish() {
|
|||||||
put_uint16_t_be(apdu.sw, apdu.rdata + apdu.rlen);
|
put_uint16_t_be(apdu.sw, apdu.rdata + apdu.rlen);
|
||||||
// timeout_stop();
|
// timeout_stop();
|
||||||
#ifndef ENABLE_EMULATION
|
#ifndef ENABLE_EMULATION
|
||||||
if ((apdu.rlen + 2 + 10) % 64 == 0) { // FIX for strange behaviour with PSCS and multiple of 64
|
/* It was fixed in the USB handling. Keep it just in case */
|
||||||
apdu.ne = apdu.rlen - 2;
|
//if ((apdu.rlen + 2 + 10) % 64 == 0) { // FIX for strange behaviour with PSCS and multiple of 64
|
||||||
}
|
// apdu.ne = apdu.rlen - 2;
|
||||||
|
//}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user