mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
CHG: from normal poll, to the length validating one.
This commit is contained in:
parent
7af5e29e22
commit
e886490a2d
1 changed files with 2 additions and 2 deletions
|
@ -199,7 +199,7 @@ static void flash_mode(int externally_entered) {
|
||||||
for(;;) {
|
for(;;) {
|
||||||
WDT_HIT();
|
WDT_HIT();
|
||||||
|
|
||||||
if (usb_poll()) {
|
if ( usb_poll_validate_length()) {
|
||||||
rx_len = usb_read(rx, sizeof(UsbCommand));
|
rx_len = usb_read(rx, sizeof(UsbCommand));
|
||||||
if (rx_len)
|
if (rx_len)
|
||||||
UsbPacketReceived(rx, rx_len);
|
UsbPacketReceived(rx, rx_len);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue