Add timing to hw ping, reduce sleep to 1ms in WaitForResponse, no impact on CPU
This commit is contained in:
1 parent
31bc88f684
commit
b9ae38f888
2 files changed
+10
-3
No files matched your search
+1
-1
@@ -802,7 +802,7 @@ bool WaitForResponseTimeoutW(uint32_t cmd, PacketResponseNG *response, size_t ms
|
||||
show_warning = false;
|
||||
}
|
||||
// just to avoid CPU busy loop:
|
||||
msleep(10);
|
||||
msleep(1);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user