mirror of
https://github.com/trussed-dev/usbd-ccid.git
synced 2026-06-20 04:16:20 -07:00
fix long_packet_missing calculation
This commit is contained in:
+1
-1
@@ -150,7 +150,7 @@ where
|
||||
if pl > PACKET_SIZE - CCID_HEADER_LEN {
|
||||
self.receiving_long = true;
|
||||
self.in_chain = 1;
|
||||
self.long_packet_missing = pl - PACKET_SIZE - CCID_HEADER_LEN;
|
||||
self.long_packet_missing = pl - (PACKET_SIZE - CCID_HEADER_LEN);
|
||||
self.packet_len = pl;
|
||||
return;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user