Be more enthusiastic with the sbus enable pin. Still no love.

This commit is contained in:
px4dev
2014-02-12 00:48:53 -08:00
parent bc3f95fc07
commit ca2ad0051d
+3 -1
View File
@@ -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;