]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/usb.c
rename ReceiveCommandP -> ReceiveCommandPoll for consistency
[proxmark3-svn] / client / usb.c
index 8f5f38a7179736f69b851157a7ea8d25c25c4c22..e7573feafdad1c05eea39dc7766f3dd742d5f965 100644 (file)
@@ -51,7 +51,7 @@ void SendCommand(UsbCommand *c, bool wantAck) {
        }
 }
 
-int ReceiveCommandP(UsbCommand *c) {
+bool ReceiveCommandPoll(UsbCommand *c) {
        int ret;
 
        bzero(c, sizeof(UsbCommand));
@@ -96,11 +96,11 @@ int ReceiveCommandP(UsbCommand *c) {
 #endif
        }
 
-       return ret;
+       return ret > 0;
 }
 
 void ReceiveCommand(UsbCommand *c) {
-       while(ReceiveCommandP(c)<0) {}
+       while(!ReceiveCommandPoll(c)) {}
 }
 
 usb_dev_handle* findProxmark(int verbose, unsigned int *iface) {
Impressum, Datenschutz