diff options
-rw-r--r-- | src/modules/px4iofirmware/sbus.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/modules/px4iofirmware/sbus.c b/src/modules/px4iofirmware/sbus.c index 8ed69678c..0e7dc621c 100644 --- a/src/modules/px4iofirmware/sbus.c +++ b/src/modules/px4iofirmware/sbus.c @@ -119,19 +119,13 @@ sbus_init(const char *device) bool sbus1_output(uint16_t *values, uint16_t num_values) { - // FIXME: I assume this was previously NYI? - ssize_t cBytes = num_values * sizeof(values[0]); - ssize_t cBytesWritten = write(sbus_fd, values, cBytes); - return cBytesWritten == cBytes; + write(sbus_fd, 'A', 1); } bool sbus2_output(uint16_t *values, uint16_t num_values) { - // FIXME: I assume this was previously NYI? - ssize_t cBytes = num_values * sizeof(values[0]); - ssize_t cBytesWritten = write(sbus_fd, values, cBytes); - return cBytesWritten == cBytes; + write(sbus_fd, 'B', 1); } bool |