RC_Channel: use set_default for runtime param defaults

This commit is contained in:
Jonathan Challinger 2015-10-22 12:45:53 -07:00 committed by Andrew Tridgell
parent 39246c13ad
commit 21e7d46944

View File

@ -114,9 +114,7 @@ RC_Channel::set_angle(int16_t angle)
void
RC_Channel::set_default_dead_zone(int16_t dzone)
{
if (!_dead_zone.load()) {
_dead_zone.set(abs(dzone));
}
_dead_zone.set_default(abs(dzone));
}
void