]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/hid-flasher/proxusb.c
fix WaitForResponse (without timeout)
[proxmark3-svn] / client / hid-flasher / proxusb.c
index 3c2b20b4c13fdf6ffc182ff24a0a155b2dd903f0..364b21a3cd3845a9ad9d3517265e384a800f425b 100644 (file)
@@ -18,7 +18,6 @@
 #include <strings.h>
 #include <errno.h>
 
-#include "sleep.h"
 #include "proxusb.h"
 #include "proxmark3.h"
 #include "usb_cmd.h"
@@ -32,7 +31,6 @@ usb_dev_handle *devh = NULL;
 static unsigned int claimed_iface = 0;
 unsigned char return_on_error = 0;
 unsigned char error_occured = 0;
-extern unsigned int current_command;
 
 void SendCommand(UsbCommand *c)
 {
@@ -41,7 +39,6 @@ void SendCommand(UsbCommand *c)
 #if 0
   printf("Sending %d bytes\n", sizeof(UsbCommand));
 #endif
-  current_command = c->cmd;
   ret = usb_bulk_write(devh, 0x01, (char*)c, sizeof(UsbCommand), 1000);
   if (ret<0) {
     error_occured = 1;
Impressum, Datenschutz