mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 21:13:34 +08:00
sensors: Fix code style
This commit is contained in:
@@ -2216,6 +2216,7 @@ Sensors::task_main()
|
|||||||
baro_poll(raw);
|
baro_poll(raw);
|
||||||
|
|
||||||
#ifndef __PX4_POSIX
|
#ifndef __PX4_POSIX
|
||||||
|
|
||||||
/* work out if main gyro timed out and fail over to alternate gyro */
|
/* work out if main gyro timed out and fail over to alternate gyro */
|
||||||
if (raw.gyro_timestamp[0] > 0 && hrt_elapsed_time(&raw.gyro_timestamp[0]) > 20 * 1000) {
|
if (raw.gyro_timestamp[0] > 0 && hrt_elapsed_time(&raw.gyro_timestamp[0]) > 20 * 1000) {
|
||||||
|
|
||||||
@@ -2229,6 +2230,7 @@ Sensors::task_main()
|
|||||||
warnx("failing over to second gyro");
|
warnx("failing over to second gyro");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* check battery voltage */
|
/* check battery voltage */
|
||||||
|
|||||||
Reference in New Issue
Block a user