mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-12-26 18:12:34 +08:00
polling per second in OpenProxmark
This commit is contained in:
parent
349eabe567
commit
a7b4bf1eb4
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue