mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-06-08 10:23:35 +02:00
Fix race condition.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -224,7 +224,7 @@ int driver_process_usb_packet_emul(uint8_t itf, uint16_t len) {
|
|||||||
if (ccid_atr) {
|
if (ccid_atr) {
|
||||||
memcpy(rdata, ccid_atr + 1, ccid_atr[0]);
|
memcpy(rdata, ccid_atr + 1, ccid_atr[0]);
|
||||||
}
|
}
|
||||||
emul_write(itf, ccid_atr ? ccid_atr[0] : 0);
|
driver_write_emul(itf, ccid_atr ? ccid_atr + 1 : NULL, ccid_atr ? ccid_atr[0] : 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user