diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-02-12 08:47:01 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-02-12 08:47:01 +0100 |
commit | 85ec7fb40aab728ba477ffd75f48c2c731fb56fa (patch) | |
tree | 0097e562ab8d42752fc2a13c103b3031ca53f60c /src/modules | |
parent | 500ac69ee46ad582eee5a4321bd53665e17032da (diff) | |
download | px4-firmware-85ec7fb40aab728ba477ffd75f48c2c731fb56fa.tar.gz px4-firmware-85ec7fb40aab728ba477ffd75f48c2c731fb56fa.tar.bz2 px4-firmware-85ec7fb40aab728ba477ffd75f48c2c731fb56fa.zip |
test loop
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/px4iofirmware/sbus.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/modules/px4iofirmware/sbus.c b/src/modules/px4iofirmware/sbus.c index 86240d36a..39230d274 100644 --- a/src/modules/px4iofirmware/sbus.c +++ b/src/modules/px4iofirmware/sbus.c @@ -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; } |