mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
chg: validating we got a full usbcommand (512b)
This commit is contained in:
parent
480c0d0ba0
commit
1cca109429
2 changed files with 18 additions and 9 deletions
|
@ -38,7 +38,7 @@ bool cmd_receive(UsbCommand* cmd) {
|
|||
if (!usb_poll_validate_length()) return false;
|
||||
|
||||
// Try to retrieve the available command frame
|
||||
size_t rxlen = usb_read((byte_t*)cmd,sizeof(UsbCommand));
|
||||
size_t rxlen = usb_read((byte_t*)cmd, sizeof(UsbCommand));
|
||||
|
||||
// Check if the transfer was complete
|
||||
if (rxlen != sizeof(UsbCommand)) return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue