diff options
author | Andrew Tridgell <tridge@samba.org> | 2013-01-27 08:47:21 +1100 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2013-01-26 16:20:02 -0800 |
commit | 5ee52138c4ac5c807888e3973099fd0f9a29aa59 (patch) | |
tree | 79540f6d6b045e0ae54d55806efdc6da912a84ea /apps | |
parent | 52ff9b7d433fed007a62fe2de375f685aa1b6b8a (diff) | |
download | px4-firmware-5ee52138c4ac5c807888e3973099fd0f9a29aa59.tar.gz px4-firmware-5ee52138c4ac5c807888e3973099fd0f9a29aa59.tar.bz2 px4-firmware-5ee52138c4ac5c807888e3973099fd0f9a29aa59.zip |
px4io: ensure RC_OK status flag is set on good input
Diffstat (limited to 'apps')
-rw-r--r-- | apps/px4io/controls.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/px4io/controls.c b/apps/px4io/controls.c index 0b2c199ee..4782dc742 100644 --- a/apps/px4io/controls.c +++ b/apps/px4io/controls.c @@ -198,8 +198,11 @@ controls_main(void) * This might happen if a protocol-based receiver returns an update * that contains no channels that we have mapped. */ - if (assigned_channels == 0) + if (assigned_channels == 0) { rc_input_lost = true; + } else { + r_status_flags |= PX4IO_P_STATUS_FLAGS_RC_OK; + } /* * Export the valid channel bitmap |