mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 20:23:38 +08:00
LL40S: Remove printf in interrupt context
This commit is contained in:
@@ -375,7 +375,6 @@ PWMIN::_freeze_test()
|
|||||||
{
|
{
|
||||||
/* reset if last poll time was way back and a read was recently requested */
|
/* reset if last poll time was way back and a read was recently requested */
|
||||||
if (hrt_elapsed_time(&_last_poll_time) > TIMEOUT_POLL && hrt_elapsed_time(&_last_read_time) < TIMEOUT_READ) {
|
if (hrt_elapsed_time(&_last_poll_time) > TIMEOUT_POLL && hrt_elapsed_time(&_last_read_time) < TIMEOUT_READ) {
|
||||||
warnx("Lidar is down, reseting");
|
|
||||||
hard_reset();
|
hard_reset();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user