X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/a9104f7e31d6c134f9772fef6df2156ed06c9e78..929b61c6701f8266c855a669d4c7827cbe0d8eb8:/client/proxmark3.c diff --git a/client/proxmark3.c b/client/proxmark3.c index a25ecb41..fb17d13d 100644 --- a/client/proxmark3.c +++ b/client/proxmark3.c @@ -28,8 +28,7 @@ #include "cmdhw.h" #include "whereami.h" #include "comms.h" -#include "pcsc.h" - +#include "uart.h" void #ifdef __has_attribute @@ -287,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 @@ -310,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(); }