test loop

This commit is contained in:
Lorenz Meier
2014-02-12 08:47:01 +01:00
parent 500ac69ee4
commit 85ec7fb40a
+8
View File
@@ -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;
}