mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 03:13:34 +08:00
SBUS: Fix code style
This commit is contained in:
+2
-1
@@ -52,7 +52,7 @@
|
|||||||
#include <drivers/drv_hrt.h>
|
#include <drivers/drv_hrt.h>
|
||||||
|
|
||||||
#ifndef GPIO_SPEKTRUM_PWR_EN
|
#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
|
#endif
|
||||||
|
|
||||||
#define DSM_FRAME_SIZE 16 /**<DSM frame size in bytes*/
|
#define DSM_FRAME_SIZE 16 /**<DSM frame size in bytes*/
|
||||||
@@ -258,6 +258,7 @@ dsm_init(const char *device)
|
|||||||
|
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
return dsm_fd;
|
return dsm_fd;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -126,6 +126,7 @@ sbus_init(const char *device, bool singlewire)
|
|||||||
|
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
return sbus_fd;
|
return sbus_fd;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user