- Restored the 'reset' command

- Linux client: detects offline mode and blocks commands which need a connected Proxmark3 (still do to on Windows)
This commit is contained in:
edouard@lafargue.name 2009-04-27 19:56:43 +00:00
commit d722c4ce78
7 changed files with 59 additions and 33 deletions

View file

@ -10,6 +10,7 @@ int GraphBuffer[MAX_GRAPH_TRACE_LEN];
int GraphTraceLen;
double CursorScaleFactor;
int CommandFinished;
int offline;
static char *logfilename = "proxmark3.log";

View file

@ -14,6 +14,7 @@ extern int GraphBuffer[MAX_GRAPH_TRACE_LEN];
extern int GraphTraceLen;
extern double CursorScaleFactor;
extern int CommandFinished;
extern int offline;
#ifdef __cplusplus
}

View file

@ -86,8 +86,10 @@ int main(int argc, char **argv)
if (!(devh = OpenProxmark(1))) {
fprintf(stderr,"PROXMARK3: NOT FOUND!\n");
marg.usb_present = 0;
offline = 1;
} else {
marg.usb_present = 1;
offline = 0;
}
pthread_create(&main_loop_t, NULL, &main_loop, &marg);