X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/9b255608898be5d43e958c8041127dfc399538c7..107ec6e4b5d76a62533cce020f139c20e1eda59e:/client/usb.c?ds=inline diff --git a/client/usb.c b/client/usb.c index 4f4bd2ca..e0836b82 100644 --- a/client/usb.c +++ b/client/usb.c @@ -41,19 +41,6 @@ void SendCommand(UsbCommand *c) { return; } -/* - if(wantAck) { - UsbCommand ack; - printf("waiting for ack\n"); - ReceiveCommand(&ack); - if(ack.cmd != CMD_ACK) { - printf("bad ACK\n"); - exit(-1); - } - } else { - printf("not waiting for ack\n"); - } -*/ } bool ReceiveCommandPoll(UsbCommand *c) { @@ -85,23 +72,9 @@ bool ReceiveCommandPoll(UsbCommand *c) { fprintf(stderr, "Read only %d instead of requested %d bytes!\n", ret, (int)sizeof(UsbCommand)); } - -#if 0 - { - int i; - - printf("Read %d bytes\n", ret); - for (i = 0; i < ret; i++) { - printf("0x%02X ", ((unsigned char*)c)[i]); - if (!((i+1)%8)) - printf("\n"); - } - printf("\n"); - } -#endif } - return ret != 0; + return ret > 0; } void ReceiveCommand(UsbCommand *c) {