polling per second in OpenProxmark

This commit is contained in:
thijsbreman@gmail.com 2013-03-04 13:07:15 +00:00
parent 349eabe567
commit a7b4bf1eb4

View file

@ -67,6 +67,8 @@ void CloseProxmark() {
int OpenProxmark(size_t i) { int OpenProxmark(size_t i) {
sp = uart_open(serial_port_name); sp = uart_open(serial_port_name);
if (sp == INVALID_SERIAL_PORT) { if (sp == INVALID_SERIAL_PORT) {
//poll once a second
sleep(1);
return 0; return 0;
} }
return 1; return 1;