Revert "Merge pull request #1819 from PX4/chan16" because of #2113

This reverts commit f8c8876642, reversing
changes made to de3888bed7.
This commit is contained in:
Andreas Antener
2015-05-05 14:41:53 +02:00
parent 577bdf3a0d
commit cd4154d805
5 changed files with 11 additions and 20 deletions
+1 -1
View File
@@ -285,7 +285,7 @@ registers_set(uint8_t page, uint8_t offset, const uint16_t *values, unsigned num
case PX4IO_PAGE_DIRECT_PWM:
/* copy channel data */
while ((offset < PX4IO_SERVO_COUNT) && (num_values > 0)) {
while ((offset < PX4IO_CONTROL_CHANNELS) && (num_values > 0)) {
/* XXX range-check value? */
if (*values != PWM_IGNORE_THIS_CHANNEL) {