mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-07-07 21:51:17 -07:00
rename ReceiveCommandP -> ReceiveCommandPoll for consistency
This commit is contained in:
parent
a99c6a1921
commit
aa81a8d3f1
4 changed files with 6 additions and 6 deletions
|
@ -46,7 +46,7 @@ int main(int argc, char **argv)
|
||||||
ReceiveCommand(&cmdbuf);
|
ReceiveCommand(&cmdbuf);
|
||||||
HANDLE_ERROR
|
HANDLE_ERROR
|
||||||
for (i=0; i<5; i++) {
|
for (i=0; i<5; i++) {
|
||||||
ReceiveCommandP(&cmdbuf);
|
ReceiveCommandPoll(&cmdbuf);
|
||||||
}
|
}
|
||||||
HANDLE_ERROR
|
HANDLE_ERROR
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ static void *usb_receiver(void *targ) {
|
||||||
UsbCommand cmdbuf;
|
UsbCommand cmdbuf;
|
||||||
|
|
||||||
while(arg->run) {
|
while(arg->run) {
|
||||||
if (ReceiveCommandP(&cmdbuf) > 0) {
|
if (ReceiveCommandPoll(&cmdbuf)) {
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i=0; i<strlen(PROXPROMPT); i++)
|
for (i=0; i<strlen(PROXPROMPT); i++)
|
||||||
|
|
|
@ -34,7 +34,7 @@ int main()
|
||||||
ReceiveCommand(&cmdbuf);
|
ReceiveCommand(&cmdbuf);
|
||||||
HANDLE_ERROR
|
HANDLE_ERROR
|
||||||
for (i=0; i<5; i++) {
|
for (i=0; i<5; i++) {
|
||||||
ReceiveCommandP(&cmdbuf);
|
ReceiveCommandPoll(&cmdbuf);
|
||||||
}
|
}
|
||||||
HANDLE_ERROR
|
HANDLE_ERROR
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,7 @@ void SendCommand(UsbCommand *c, bool wantAck) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int ReceiveCommandP(UsbCommand *c) {
|
bool ReceiveCommandPoll(UsbCommand *c) {
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
bzero(c, sizeof(UsbCommand));
|
bzero(c, sizeof(UsbCommand));
|
||||||
|
@ -96,11 +96,11 @@ int ReceiveCommandP(UsbCommand *c) {
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ReceiveCommand(UsbCommand *c) {
|
void ReceiveCommand(UsbCommand *c) {
|
||||||
while(ReceiveCommandP(c)<0) {}
|
while(!ReceiveCommandPoll(c)) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
usb_dev_handle* findProxmark(int verbose, unsigned int *iface) {
|
usb_dev_handle* findProxmark(int verbose, unsigned int *iface) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue