mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
temperature_calibration: fix poll (number of fds), remove usleep
useep() is not needed because we use the poll()
This commit is contained in:
parent
54e9bda412
commit
2fbb1aee84
@ -176,7 +176,7 @@ void Tempcal::task_main()
|
||||
//uint16_t l = 0;
|
||||
|
||||
while (!_task_should_exit) {
|
||||
int ret = px4_poll(fds, sizeof(fds) / sizeof(fds[0]), 1000);
|
||||
int ret = px4_poll(fds, num_gyro, 1000);
|
||||
|
||||
if (ret < 0) {
|
||||
// Poll error, sleep and try again
|
||||
@ -316,7 +316,6 @@ void Tempcal::task_main()
|
||||
}
|
||||
}
|
||||
|
||||
usleep(100);
|
||||
}
|
||||
|
||||
for (unsigned i = 0; i < num_gyro; i++) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user