mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-08 10:50:19 +08:00
SBUS: Fix code style
This commit is contained in:
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user