Copter: use configured function to determine if heli_servo_rsc has been configured

This commit is contained in:
Jonathan Challinger 2015-10-24 19:33:04 -07:00 committed by Andrew Tridgell
parent f0f5239d8f
commit 5486be34b1
1 changed files with 2 additions and 2 deletions

View File

@ -25,10 +25,10 @@ void Copter::heli_init()
3.4 they get the same throttle range as in previous versions of 3.4 they get the same throttle range as in previous versions of
the code the code
*/ */
if (!g.heli_servo_rsc.radio_min.load()) { if (!g.heli_servo_rsc.radio_min.configured()) {
g.heli_servo_rsc.radio_min.set_and_save(g.rc_8.radio_min.get()); g.heli_servo_rsc.radio_min.set_and_save(g.rc_8.radio_min.get());
} }
if (!g.heli_servo_rsc.radio_max.load()) { if (!g.heli_servo_rsc.radio_max.configured()) {
g.heli_servo_rsc.radio_max.set_and_save(g.rc_8.radio_max.get()); g.heli_servo_rsc.radio_max.set_and_save(g.rc_8.radio_max.get());
} }
} }