Copter: fence.init() was getting called even when AC_FENCE was DISABLED

This commit is contained in:
Zach Dwiel 2020-06-09 11:03:31 -04:00 committed by Andrew Tridgell
parent 500755b5db
commit f85b4996ff

View File

@ -69,7 +69,9 @@ void Copter::init_ardupilot()
g2.gripper.init();
#endif
#if AC_FENCE == ENABLED
fence.init();
#endif
// init winch and wheel encoder
winch_init();