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:
martin.holst@gmail.com 2013-11-06 18:32:11 +00:00
parent b11542a7f6
commit da9d456e9f

View file

@ -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;