mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 07:03:34 +08:00
Merge pull request #2257 from mcharleb/px4_poll-fix
px4_poll fix - was sleeping for usec instead of ms
This commit is contained in:
@@ -242,7 +242,7 @@ int px4_poll(px4_pollfd_struct_t *fds, nfds_t nfds, int timeout)
|
|||||||
void *res;
|
void *res;
|
||||||
|
|
||||||
ts.tv_sec = timeout/1000;
|
ts.tv_sec = timeout/1000;
|
||||||
ts.tv_nsec = (timeout % 1000)*1000;
|
ts.tv_nsec = (timeout % 1000)*1000000;
|
||||||
|
|
||||||
// Create a timer to unblock
|
// Create a timer to unblock
|
||||||
struct timerData td(sem, ts);
|
struct timerData td(sem, ts);
|
||||||
|
|||||||
Reference in New Issue
Block a user