mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-14 14:13:34 +08:00
S.BUS: Fix code style
This commit is contained in:
+4
-3
@@ -100,9 +100,9 @@ sbus_init(const char *device, bool singlewire)
|
||||
|
||||
if (singlewire) {
|
||||
/* only defined in configs capable of IOCTL */
|
||||
#ifdef SBUS_SERIAL_PORT
|
||||
#ifdef SBUS_SERIAL_PORT
|
||||
ioctl(uart, TIOCSSINGLEWIRE, SER_SINGLEWIRE_ENABLED);
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
/* initialise the decoder */
|
||||
@@ -161,7 +161,8 @@ sbus2_output(int sbus_fd, uint16_t *values, uint16_t num_values)
|
||||
}
|
||||
|
||||
bool
|
||||
sbus_input(int sbus_fd, uint16_t *values, uint16_t *num_values, bool *sbus_failsafe, bool *sbus_frame_drop, uint16_t max_channels)
|
||||
sbus_input(int sbus_fd, uint16_t *values, uint16_t *num_values, bool *sbus_failsafe, bool *sbus_frame_drop,
|
||||
uint16_t max_channels)
|
||||
{
|
||||
ssize_t ret;
|
||||
hrt_abstime now;
|
||||
|
||||
Reference in New Issue
Block a user