DSM: Fix code style

This commit is contained in:
Lorenz Meier 2017-01-21 14:08:10 +01:00
parent 99450c05f5
commit eed78fdcc9
1 changed files with 3 additions and 1 deletions

View File

@ -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