diff options
author | px4dev <px4@purgatory.org> | 2014-02-12 00:48:53 -0800 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2014-02-12 00:48:53 -0800 |
commit | ca2ad0051d2c5a31aa6050cc88f5c7d6c2997036 (patch) | |
tree | a055e6c69941203e2cb5a95c331e4d66f2b1ba7d | |
parent | bc3f95fc07fb01edecfa9147023a354f1f237e92 (diff) | |
download | px4-firmware-ca2ad0051d2c5a31aa6050cc88f5c7d6c2997036.tar.gz px4-firmware-ca2ad0051d2c5a31aa6050cc88f5c7d6c2997036.tar.bz2 px4-firmware-ca2ad0051d2c5a31aa6050cc88f5c7d6c2997036.zip |
Be more enthusiastic with the sbus enable pin. Still no love.
-rw-r--r-- | src/modules/px4iofirmware/sbus.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/px4iofirmware/sbus.c b/src/modules/px4iofirmware/sbus.c index 6608392d0..32be93d4c 100644 --- a/src/modules/px4iofirmware/sbus.c +++ b/src/modules/px4iofirmware/sbus.c @@ -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; |