mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-07-16 02:03:00 -07:00
Minor fix, sometimes when data is sent without the pm3 is connected, it causes a spin-loop condition to occur which blocks the processor. fixed
This commit is contained in:
parent
b11542a7f6
commit
da9d456e9f
1 changed files with 6 additions and 0 deletions
|
@ -41,6 +41,12 @@ void SendCommand(UsbCommand *c) {
|
||||||
ERR("Sending command failed, previous command is still pending");
|
ERR("Sending command failed, previous command is still pending");
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
if(offline)
|
||||||
|
{
|
||||||
|
PrintAndLog("Sending bytes to proxmark failed - offline");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
while(txcmd_pending);
|
while(txcmd_pending);
|
||||||
txcmd = *c;
|
txcmd = *c;
|
||||||
txcmd_pending = true;
|
txcmd_pending = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue