diff options
author | Simon Wilks <sjwilks@gmail.com> | 2013-01-06 04:21:04 +0100 |
---|---|---|
committer | Simon Wilks <sjwilks@gmail.com> | 2013-01-06 04:21:04 +0100 |
commit | 7842caf3b2d5686c4e909d7d7f28758119e8918f (patch) | |
tree | bb0b773138ea9997543ef7c98a6433c4e19ba408 /apps/px4io/controls.c | |
parent | 0a89ab7075e4d637c91e21246c4790599f046aec (diff) | |
download | px4-firmware-7842caf3b2d5686c4e909d7d7f28758119e8918f.tar.gz px4-firmware-7842caf3b2d5686c4e909d7d7f28758119e8918f.tar.bz2 px4-firmware-7842caf3b2d5686c4e909d7d7f28758119e8918f.zip |
Moved the channel mappings and attributes to the config section
Diffstat (limited to 'apps/px4io/controls.c')
-rw-r--r-- | apps/px4io/controls.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/px4io/controls.c b/apps/px4io/controls.c index 564687b58..32fd7c33f 100644 --- a/apps/px4io/controls.c +++ b/apps/px4io/controls.c @@ -172,8 +172,9 @@ ppm_input(void) /* PPM data exists, copy it */ system_state.rc_channels = ppm_decoded_channels; - for (unsigned i = 0; i < ppm_decoded_channels; i++) + for (unsigned i = 0; i < ppm_decoded_channels; i++) { system_state.rc_channel_data[i] = ppm_buffer[i]; + } /* copy the timestamp and clear it */ system_state.rc_channels_timestamp = ppm_last_valid_decode; |