Channel rage fix - low output was always 0 vs _low

This commit is contained in:
Jason Short 2012-05-31 11:31:48 -07:00
parent bafb478924
commit 00cabc6343

View File

@ -246,7 +246,7 @@ RC_Channel::pwm_to_range()
if(radio_in > radio_trim_low) if(radio_in > radio_trim_low)
return (_low + ((long)(_high - _low) * (long)(radio_in - radio_trim_low)) / (long)(radio_max - radio_trim_low)); return (_low + ((long)(_high - _low) * (long)(radio_in - radio_trim_low)) / (long)(radio_max - radio_trim_low));
else else
return 0; return _low;
} }