mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
1. small bugfix in hf 14a mifare
2. now in cmd hf 14a mifare - blinks LED_C 3. bugfix in readblock 2. bugfix in USB CommandReceived 3. small improvements
This commit is contained in:
parent
f89c705002
commit
50193c1e3e
5 changed files with 165 additions and 46 deletions
|
@ -26,6 +26,7 @@
|
|||
unsigned int current_command = CMD_UNKNOWN;
|
||||
unsigned int received_command = CMD_UNKNOWN;
|
||||
UsbCommand current_response;
|
||||
UsbCommand current_response_user;
|
||||
|
||||
static int CmdHelp(const char *Cmd);
|
||||
static int CmdQuit(const char *Cmd);
|
||||
|
@ -55,12 +56,16 @@ int CmdQuit(const char *Cmd)
|
|||
}
|
||||
|
||||
UsbCommand * WaitForResponseTimeout(uint32_t response_type, uint32_t ms_timeout) {
|
||||
UsbCommand * ret = ¤t_response;
|
||||
UsbCommand * ret = NULL;
|
||||
int i=0;
|
||||
|
||||
for(i=0; received_command != response_type && i < ms_timeout / 10; i++) {
|
||||
msleep(10); // XXX ugh
|
||||
}
|
||||
|
||||
// There was evil BUG
|
||||
memcpy(¤t_response_user, ¤t_response, sizeof(UsbCommand));
|
||||
ret = ¤t_response_user;
|
||||
|
||||
if(received_command != response_type)
|
||||
ret = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue