Merge pull request #3572 from xianglin1998/improve-sp-send-speed

Improve serialport send speed
This commit is contained in:
Iceman authored and GitHub committed 2026-09-01 23:30:04 +07:00
commit 083cd7ac15
4 files changed
+160 -30

No files matched your search

+4 -3
View File
@@ -100,7 +100,8 @@ bool WaitForTxIdle(uint32_t ms_timeout) {
if (msclock() - start >= ms_timeout) {
return false;
}
msleep(1);
xyield(); // just to avoid CPU busy loop
}
}
@@ -1174,8 +1175,8 @@ bool WaitForResponseTimeoutW(uint32_t cmd, PacketResponseNG *response, size_t ms
PrintAndLogEx(INFO, "You can cancel this operation by pressing the pm3 button");
show_warning = false;
}
// just to avoid CPU busy loop:
msleep(1);
xyield(); // just to avoid CPU busy loop
}
return false;
}