Merge branch 'polhenarejos:main' into main

This commit is contained in:
Dmytro Kolesnykov 2025-05-25 14:08:49 +03:00 committed by GitHub
commit 52e7f8426c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -224,9 +224,10 @@ void apdu_finish() {
put_uint16_t_be(apdu.sw, apdu.rdata + apdu.rlen);
// timeout_stop();
#ifndef ENABLE_EMULATION
if ((apdu.rlen + 2 + 10) % 64 == 0) { // FIX for strange behaviour with PSCS and multiple of 64
apdu.ne = apdu.rlen - 2;
}
/* It was fixed in the USB handling. Keep it just in case */
//if ((apdu.rlen + 2 + 10) % 64 == 0) { // FIX for strange behaviour with PSCS and multiple of 64
// apdu.ne = apdu.rlen - 2;
//}
#endif
}