diff options
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; |