mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-02 21:54:10 +08:00
fixed read uart for windows
This commit is contained in:
parent
d0b14ad5e7
commit
af65f5f71d
1 changed files with 1 additions and 0 deletions
|
@ -67,6 +67,7 @@ static void *uart_receiver(void *targ) {
|
||||||
size_t cmd_count;
|
size_t cmd_count;
|
||||||
|
|
||||||
while (arg->run) {
|
while (arg->run) {
|
||||||
|
rxlen = sizeof(UsbCommand);
|
||||||
if (uart_receive(sp,rx,&rxlen)) {
|
if (uart_receive(sp,rx,&rxlen)) {
|
||||||
if ((rxlen % sizeof(UsbCommand)) != 0) {
|
if ((rxlen % sizeof(UsbCommand)) != 0) {
|
||||||
PrintAndLog("ERROR: received %zd bytes, which does not seem to be one or more command(s)\n",rxlen);
|
PrintAndLog("ERROR: received %zd bytes, which does not seem to be one or more command(s)\n",rxlen);
|
||||||
|
|
Loading…
Reference in a new issue