X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/b8ed9975e55c91abfd274e17d3414a31d53fab08..refs/pull/938/head:/client/proxmark3.c diff --git a/client/proxmark3.c b/client/proxmark3.c index 6b1e2393..fb17d13d 100644 --- a/client/proxmark3.c +++ b/client/proxmark3.c @@ -286,7 +286,7 @@ int main(int argc, char* argv[]) { set_my_executable_path(); // try to open USB connection to Proxmark - usb_present = OpenProxmark(argv[1], waitCOMPort, 20, false); + usb_present = OpenProxmark(argv[1], waitCOMPort, 20); #ifdef HAVE_GUI #ifdef _WIN32 @@ -309,8 +309,10 @@ int main(int argc, char* argv[]) { main_loop(script_cmds_file, script_cmd, usb_present); #endif - // Clean up the port + // Switch off field and clean up the port if (usb_present) { + UsbCommand c = {CMD_FPGA_MAJOR_MODE_OFF}; + SendCommand(&c); CloseProxmark(); }