mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 12:13:34 +08:00
Fixed poll timeout bug
The SIGCONT signal was being ignored by the HRT queue thread so the usleep was not waking up early to process new work. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -303,6 +303,11 @@ int VCDevExample::main()
|
||||
ret = 1;
|
||||
goto fail2;
|
||||
}
|
||||
PX4_INFO("TEST: 100ms TIMEOUT POLL -----------");
|
||||
if(do_poll(fd, 0, 30, 100)) {
|
||||
ret = 1;
|
||||
goto fail2;
|
||||
}
|
||||
PX4_INFO("TEST: 1 SEC TIMOUT POLL ------------");
|
||||
if(do_poll(fd, 1000, 3, 0)) {
|
||||
ret = 1;
|
||||
|
||||
Reference in New Issue
Block a user