mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +08:00
urtps: rectify comment
This commit is contained in:
@@ -395,13 +395,10 @@ int UART_node::init()
|
|||||||
|
|
||||||
while (0 < ::read(uart_fd, (void *)&aux, 64)) {
|
while (0 < ::read(uart_fd, (void *)&aux, 64)) {
|
||||||
flush = true;
|
flush = true;
|
||||||
/**
|
|
||||||
* According to px4_time.h, px4_usleep() is only defined when lockstep is set
|
|
||||||
* to be used
|
|
||||||
*/
|
|
||||||
#ifndef px4_usleep
|
#ifndef px4_usleep
|
||||||
usleep(1000);
|
usleep(1000);
|
||||||
#else
|
#else
|
||||||
|
/* With PX4 px4_usleep() should be used. */
|
||||||
px4_usleep(1000);
|
px4_usleep(1000);
|
||||||
#endif /* px4_usleep */
|
#endif /* px4_usleep */
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user