mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
SBUS: Fix code style
This commit is contained in:
parent
494bccb618
commit
d71c629970
@ -52,7 +52,7 @@
|
||||
#include <drivers/drv_hrt.h>
|
||||
|
||||
#ifndef GPIO_SPEKTRUM_PWR_EN
|
||||
#error DSM input driver not supported by this board config
|
||||
#error DSM input driver not supported by this board config
|
||||
#endif
|
||||
|
||||
#define DSM_FRAME_SIZE 16 /**<DSM frame size in bytes*/
|
||||
@ -258,6 +258,7 @@ dsm_init(const char *device)
|
||||
|
||||
if (!ret) {
|
||||
return dsm_fd;
|
||||
|
||||
} else {
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -126,6 +126,7 @@ sbus_init(const char *device, bool singlewire)
|
||||
|
||||
if (!ret) {
|
||||
return sbus_fd;
|
||||
|
||||
} else {
|
||||
return -1;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user