mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-06 15:18:52 +08:00
Remove the s.bus test loop... makes it very hard to update the firmware.
This commit is contained in:
@@ -113,17 +113,6 @@ sbus_init(const char *device)
|
||||
} else {
|
||||
debug("S.Bus: open failed");
|
||||
}
|
||||
|
||||
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