forked from Archive/PX4-Autopilot
DSM: Fix code style
This commit is contained in:
parent
99450c05f5
commit
eed78fdcc9
|
@ -692,8 +692,10 @@ dsm_parse(uint64_t now, uint8_t *frame, unsigned len, uint16_t *values,
|
|||
|
||||
if (decode_ret) {
|
||||
/* num values should not decrease, only increase */
|
||||
if (dsm_chan_count > *num_values)
|
||||
if (dsm_chan_count > *num_values) {
|
||||
*num_values = dsm_chan_count;
|
||||
}
|
||||
|
||||
memcpy(&values[0], &dsm_chan_buf[0], dsm_chan_count * sizeof(dsm_chan_buf[0]));
|
||||
#ifdef DSM_DEBUG
|
||||
|
||||
|
|
Loading…
Reference in New Issue