mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
CHG: appmain now calls cmd_recieve as it should
CHG: flasher - removed unneeded parameter to function CHG: flasher - increased limit to fpga-files that can be loaded FIX: main client, wrong windows define fixed. CHG: device side - recieve usb command does not always get 544 bytes. usb packages can be incomplete. CHG: usb_cdc.c also got piwi's changes. CHG: uart_posix.c removed a debug value CHG: uart_win32.c clean up.
This commit is contained in:
parent
77103e71cf
commit
16028f7d33
9 changed files with 279 additions and 252 deletions
|
@ -197,15 +197,14 @@ static void flash_mode(int externally_entered) {
|
|||
//for (volatile size_t i=0; i<0x100000; i++) {};
|
||||
|
||||
for(;;) {
|
||||
|
||||
WDT_HIT();
|
||||
|
||||
if ( usb_poll_validate_length()) {
|
||||
rx_len = usb_read(rx, sizeof(UsbCommand));
|
||||
if (rx_len == sizeof(UsbCommand))
|
||||
UsbPacketReceived(rx, rx_len);
|
||||
}
|
||||
|
||||
WDT_HIT();
|
||||
|
||||
|
||||
if (!externally_entered && !BUTTON_PRESS()) {
|
||||
/* Perform a reset to leave flash mode */
|
||||
usb_disable();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue