mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-25 07:35:40 -07:00
Add throttling in reconnecting thread
This commit is contained in:
parent
47376c84ea
commit
b414081e3e
1 changed files with 2 additions and 0 deletions
|
@ -355,6 +355,8 @@ void *uart_reconnect(void *targ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
|
// throttle
|
||||||
|
msleep(200);
|
||||||
if (OpenProxmarkSilent(&g_session.current_device, connection->serial_port_name, speed) == false) {
|
if (OpenProxmarkSilent(&g_session.current_device, connection->serial_port_name, speed) == false) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue