mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-14 13:00:36 +08:00
Be more enthusiastic with the sbus enable pin. Still no love.
This commit is contained in:
@@ -114,12 +114,14 @@ sbus_init(const char *device)
|
||||
debug("S.Bus: open failed");
|
||||
}
|
||||
|
||||
ENABLE_SBUS_OUT(true);
|
||||
stm32_configgpio(GPIO_SBUS_OENABLE);
|
||||
|
||||
while (1) {
|
||||
ENABLE_SBUS_OUT(true);
|
||||
const char* hello = "HELLO WORLD";
|
||||
if (write(sbus_fd, hello, strlen(hello)) != strlen(hello))
|
||||
break;
|
||||
ENABLE_SBUS_OUT(false);
|
||||
}
|
||||
|
||||
return sbus_fd;
|
||||
|
||||
Reference in New Issue
Block a user