diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-02-22 15:33:09 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-02-22 15:33:09 +0100 |
commit | 604c09dfb063f97f74d876c8827159109725e433 (patch) | |
tree | 7f55f85025ccb9bdc989837f0a38f20adb0dd63c /src/modules/px4iofirmware | |
parent | 1633f57ff267cab2f947d7b5638de2b9d9862e05 (diff) | |
download | px4-firmware-604c09dfb063f97f74d876c8827159109725e433.tar.gz px4-firmware-604c09dfb063f97f74d876c8827159109725e433.tar.bz2 px4-firmware-604c09dfb063f97f74d876c8827159109725e433.zip |
SBUS 2 parser fix.
Diffstat (limited to 'src/modules/px4iofirmware')
-rw-r--r-- | src/modules/px4iofirmware/sbus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/px4iofirmware/sbus.c b/src/modules/px4iofirmware/sbus.c index 8296d90bc..d89021d24 100644 --- a/src/modules/px4iofirmware/sbus.c +++ b/src/modules/px4iofirmware/sbus.c @@ -213,9 +213,9 @@ sbus_input(uint16_t *values, uint16_t *num_values, bool *sbus_failsafe, bool *sb /* fall through */ case SBUS2_DECODE_STATE_SBUS2_SYNC: { - /* decode whatever we got and expect */ + /* decode whatever we got */ if (partial_frame_count < SBUS_FRAME_SIZE) - decode_ret = true; + decode_ret = false; /* * Great, it looks like we might have a frame. Go ahead and |