mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
FIX: bootrom - flashmode should also not assume sizeof(usbcommand) 544 bytes
This commit is contained in:
parent
16028f7d33
commit
d46955e309
2 changed files with 12 additions and 9 deletions
|
@ -1163,13 +1163,12 @@ void __attribute__((noreturn)) AppMain(void) {
|
|||
byte_t rx[sizeof(UsbCommand)];
|
||||
|
||||
for(;;) {
|
||||
|
||||
WDT_HIT();
|
||||
|
||||
// Check if there is a usb packet available
|
||||
if ( cmd_receive( (UsbCommand*)rx ) )
|
||||
UsbPacketReceived(rx, sizeof(UsbCommand) );
|
||||
|
||||
WDT_HIT();
|
||||
|
||||
// Press button for one second to enter a possible standalone mode
|
||||
if (BUTTON_HELD(1000) > 0) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue