From 6e52a09e50419168b62c57ca655bf30c6cd119cd Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 15 Jul 2013 10:30:10 +1000 Subject: [PATCH] Rover: fixed HIL build --- APMrover2/system.pde | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/APMrover2/system.pde b/APMrover2/system.pde index 0c585faf90..5049f6a991 100644 --- a/APMrover2/system.pde +++ b/APMrover2/system.pde @@ -567,13 +567,11 @@ static uint8_t check_digital_pin(uint8_t pin) static void servo_write(uint8_t ch, uint16_t pwm) { #if HIL_MODE != HIL_MODE_DISABLED - if (!g.hil_servos) { - if (ch < 8) { - RC_Channel::rc_channel(ch)->radio_out = pwm; - } - return; + if (ch < 8) { + RC_Channel::rc_channel(ch)->radio_out = pwm; } -#endif +#else hal.rcout->enable_ch(ch); hal.rcout->write(ch, pwm); +#endif }