X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/ad939de5017f3451376d6f559858a30bae675964..2378bb24c3d4ce21d71b4ab5739c58a9979b8b69:/client/proxmark3.c diff --git a/client/proxmark3.c b/client/proxmark3.c index 40c46613..fda9f313 100644 --- a/client/proxmark3.c +++ b/client/proxmark3.c @@ -29,6 +29,7 @@ #include "whereami.h" #include "comms.h" + void #ifdef __has_attribute #if __has_attribute(force_align_arg_pointer) @@ -48,6 +49,7 @@ main_loop(char *script_cmds_file, char *script_cmd, bool usb_present) { SetOffline(true); } + // file with script FILE *script_file = NULL; char script_cmd_buf[256] = {0}; // iceman, needs lua script the same file_path_buffer as the rest @@ -131,10 +133,6 @@ main_loop(char *script_cmds_file, char *script_cmd, bool usb_present) { } write_history(".history"); - - if (usb_present) { - CloseProxmark(); - } if (script_file) { fclose(script_file);