Ignore single channels during PWM output

This commit is contained in:
Holger Steinhaus
2014-08-26 14:34:14 +02:00
parent 19fa79dcb1
commit 87b2375be4
3 changed files with 11 additions and 2 deletions
+3 -1
View File
@@ -285,7 +285,9 @@ registers_set(uint8_t page, uint8_t offset, const uint16_t *values, unsigned num
while ((offset < PX4IO_CONTROL_CHANNELS) && (num_values > 0)) {
/* XXX range-check value? */
r_page_servos[offset] = *values;
if (*values != PWM_IGNORE_THIS_CHANNEL) {
r_page_servos[offset] = *values;
}
offset++;
num_values--;