]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
polling per second in OpenProxmark
authorthijsbreman@gmail.com <thijsbreman@gmail.com@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Mon, 4 Mar 2013 13:07:15 +0000 (13:07 +0000)
committerthijsbreman@gmail.com <thijsbreman@gmail.com@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Mon, 4 Mar 2013 13:07:15 +0000 (13:07 +0000)
client/flasher.c

index f2a8e7c8172e3774a0ef55884f16e656a91c4a17..9b92ffa43720136490b0b63c0997a7ada5c083bf 100644 (file)
@@ -67,6 +67,8 @@ void CloseProxmark() {
 int OpenProxmark(size_t i) {
   sp = uart_open(serial_port_name);
   if (sp == INVALID_SERIAL_PORT) {
+               //poll once a second
+               sleep(1);
     return 0;
   }
   return 1;
Impressum, Datenschutz