From 49f7df572473f22767f21486452d7596fd56e430 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Thu, 17 Dec 2015 11:34:57 +0000 Subject: [PATCH] IO firmware decode style --- src/modules/px4iofirmware/controls.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/modules/px4iofirmware/controls.c b/src/modules/px4iofirmware/controls.c index 068e54653d..b857aa41fa 100644 --- a/src/modules/px4iofirmware/controls.c +++ b/src/modules/px4iofirmware/controls.c @@ -73,15 +73,16 @@ static unsigned _rssi_adc_counts = 0; bool dsm_port_input(uint16_t *rssi, bool *dsm_updated, bool *st24_updated, bool *sumd_updated) { - perf_begin(c_gather_dsm); + perf_begin(c_gather_dsm); uint8_t n_bytes = 0; uint8_t *bytes; - bool dsm_11_bit; - *dsm_updated = dsm_input(_dsm_fd, r_raw_rc_values, &r_raw_rc_count, &dsm_11_bit, &n_bytes, &bytes, PX4IO_RC_INPUT_CHANNELS); + bool dsm_11_bit; + *dsm_updated = dsm_input(_dsm_fd, r_raw_rc_values, &r_raw_rc_count, &dsm_11_bit, &n_bytes, &bytes, + PX4IO_RC_INPUT_CHANNELS); - if (*dsm_updated) { + if (*dsm_updated) { - if (dsm_11_bit) { + if (dsm_11_bit) { r_raw_rc_flags |= PX4IO_P_RAW_RC_FLAGS_RC_DSM11; } else {