Plane: move relay init earlier

allows relay pins to be used as pullups for other sensors (such as
LidarLiteV3)
This commit is contained in:
Andrew Tridgell 2017-03-01 18:24:32 +11:00 committed by Randy Mackay
parent 05cbc19ad6
commit abcc75009d

View File

@ -139,6 +139,8 @@ void Plane::init_ardupilot()
// setup any board specific drivers
BoardConfig.init();
relay.init();
// initialise notify system
notify.init(false);
notify_flight_mode(control_mode);
@ -216,8 +218,6 @@ void Plane::init_ardupilot()
init_rc_in(); // sets up rc channels from radio
relay.init();
#if MOUNT == ENABLED
// initialise camera mount
camera_mount.init(&DataFlash, serial_manager);