X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/ed77aabe00d1453217b16f2d3cc4711d0981fb93..c86220246ef82c34a76e7cae4eb83556fcdfd30b:/client/proxmark3.c diff --git a/client/proxmark3.c b/client/proxmark3.c index 2fefc890..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; @@ -168,6 +174,7 @@ static void *main_loop(void *targ) { if (cmd[0] != 0x00) { if (strncmp(cmd, "quit", 4) == 0) { + exit(0); break; }