forked from Archive/PX4-Autopilot
PX4IO Firmware: fix 16ch output
This commit is contained in:
parent
649fcd7cc7
commit
6bd94f15a8
|
@ -284,7 +284,7 @@ registers_set(uint8_t page, uint8_t offset, const uint16_t *values, unsigned num
|
||||||
case PX4IO_PAGE_DIRECT_PWM:
|
case PX4IO_PAGE_DIRECT_PWM:
|
||||||
|
|
||||||
/* copy channel data */
|
/* copy channel data */
|
||||||
while ((offset < PX4IO_CONTROL_CHANNELS) && (num_values > 0)) {
|
while ((offset < PX4IO_SERVO_COUNT) && (num_values > 0)) {
|
||||||
|
|
||||||
/* XXX range-check value? */
|
/* XXX range-check value? */
|
||||||
if (*values != PWM_IGNORE_THIS_CHANNEL) {
|
if (*values != PWM_IGNORE_THIS_CHANNEL) {
|
||||||
|
|
Loading…
Reference in New Issue