diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-09-22 11:31:06 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-09-22 11:31:06 +0200 |
commit | 5a543540444630ceb348eee463c9bda60fc9ff1b (patch) | |
tree | 288f508f9ebe1c3b4ae9dd791094866bd28427c1 /src/drivers/px4io/px4io.cpp | |
parent | f62aeba4207beaeeff63af970ec5d6bb2fb1e8a7 (diff) | |
parent | ebd16975d01b3a2200e94e164199b88527a27e3c (diff) | |
download | px4-firmware-5a543540444630ceb348eee463c9bda60fc9ff1b.tar.gz px4-firmware-5a543540444630ceb348eee463c9bda60fc9ff1b.tar.bz2 px4-firmware-5a543540444630ceb348eee463c9bda60fc9ff1b.zip |
Merge branch 'master' into mixer_fix
Diffstat (limited to 'src/drivers/px4io/px4io.cpp')
-rw-r--r-- | src/drivers/px4io/px4io.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/px4io/px4io.cpp b/src/drivers/px4io/px4io.cpp index b66d425dd..9597dad9a 100644 --- a/src/drivers/px4io/px4io.cpp +++ b/src/drivers/px4io/px4io.cpp @@ -1509,7 +1509,7 @@ PX4IO::mixer_send(const char *buf, unsigned buflen, unsigned retries) * even. */ unsigned total_len = sizeof(px4io_mixdata) + count; - if (total_len % 1) { + if (total_len % 2) { msg->text[count] = '\0'; total_len++; } |