From da9d456e9fabb82fcaefdddcaac50d38b35cf3d9 Mon Sep 17 00:00:00 2001 From: "martin.holst@gmail.com" Date: Wed, 6 Nov 2013 18:32:11 +0000 Subject: [PATCH] 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 --- client/proxmark3.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.39.5