From: martin.holst@gmail.com Date: Wed, 6 Nov 2013 18:32:11 +0000 (+0000) Subject: Minor fix, sometimes when data is sent without the pm3 is connected, it causes a... X-Git-Tag: v1.0.0~25 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/da9d456e9fabb82fcaefdddcaac50d38b35cf3d9?hp=b11542a7f65268df82a8e80f42b91751bba76adb 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 --- diff --git a/client/proxmark3.c b/client/proxmark3.c index 102e03f7..91bc7b31 100644 --- a/client/proxmark3.c +++ b/client/proxmark3.c @@ -41,6 +41,12 @@ void SendCommand(UsbCommand *c) { ERR("Sending command failed, previous command is still pending"); } */ + if(offline) + { + PrintAndLog("Sending bytes to proxmark failed - offline"); + return; + } + while(txcmd_pending); txcmd = *c; txcmd_pending = true;