mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
initial commit to be in sync the-soon-defunct repo pm3rdv40.
This commit is contained in:
parent
905df58cc3
commit
5f77121694
34 changed files with 709 additions and 508 deletions
10
common/cmd.c
10
common/cmd.c
|
@ -33,14 +33,6 @@
|
|||
|
||||
bool cmd_receive(UsbCommand* cmd) {
|
||||
|
||||
// check if there is a FPC USART1 message?
|
||||
/*
|
||||
size_t fpc_rxlen = usart_read((uint8_t*)cmd, sizeof(UsbCommand));
|
||||
if ( fpc_rxlen )
|
||||
return true;
|
||||
|
||||
*/
|
||||
|
||||
// Check if there is a usb packet available
|
||||
if (!usb_poll_validate_length()) return false;
|
||||
|
||||
|
@ -78,8 +70,6 @@ bool cmd_send(uint64_t cmd, uint64_t arg0, uint64_t arg1, uint64_t arg2, void* d
|
|||
txcmd.d.asBytes[i] = ((uint8_t*)data)[i];
|
||||
}
|
||||
}
|
||||
|
||||
//usart_send( (uint8_t*)&txcmd, sizeof(UsbCommand));
|
||||
|
||||
// Send frame and make sure all bytes are transmitted
|
||||
if ( usb_write( (uint8_t*)&txcmd, sizeof(UsbCommand)) != 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue