HAL_PX4: fixed build for new PX4Firmware

This commit is contained in:
Andrew Tridgell 2014-01-13 13:54:51 +11:00 committed by Randy Mackay
parent ea90984d8c
commit 333f0532b7

View File

@ -115,7 +115,7 @@ void PX4RCOutput::set_freq(uint32_t chmask, uint16_t freq_hz)
}
}
if (ioctl(_pwm_fd, PWM_SERVO_SELECT_UPDATE_RATE, _rate_mask) != 0) {
if (ioctl(_pwm_fd, PWM_SERVO_SET_SELECT_UPDATE_RATE, _rate_mask) != 0) {
hal.console->printf("RCOutput: Unable to set alt rate mask to 0x%x\n", (unsigned)_rate_mask);
}
}