From 5486be34b1a6fbc894c4ea39f4850c95a34605a0 Mon Sep 17 00:00:00 2001 From: Jonathan Challinger Date: Sat, 24 Oct 2015 19:33:04 -0700 Subject: [PATCH] Copter: use configured function to determine if heli_servo_rsc has been configured --- ArduCopter/heli.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArduCopter/heli.cpp b/ArduCopter/heli.cpp index 44e65b7297..5470a22c59 100644 --- a/ArduCopter/heli.cpp +++ b/ArduCopter/heli.cpp @@ -25,10 +25,10 @@ void Copter::heli_init() 3.4 they get the same throttle range as in previous versions of 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()); } - 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()); } }