mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-20 21:33:19 -07:00
fixes to make it work properly on the Mac
This commit is contained in:
parent
940a20122d
commit
022c8791c1
4 changed files with 59 additions and 42 deletions
29
client/usb.c
29
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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue