mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-16 15:17:35 +08:00
test loop
This commit is contained in:
@@ -114,6 +114,14 @@ sbus_init(const char *device)
|
||||
debug("S.Bus: open failed");
|
||||
}
|
||||
|
||||
ENABLE_SBUS_OUT(true);
|
||||
|
||||
while (1) {
|
||||
const char* hello = 'HELLO WORLD';
|
||||
if (write(sbus_fd, hello, strlen(hello)) != strlen(hello))
|
||||
break;
|
||||
}
|
||||
|
||||
return sbus_fd;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user