mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-06 16:49:51 +08:00
DSM: Fix code style
This commit is contained in:
+3
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user