Copter: remove enabled check from optflow init

This commit is contained in:
Randy Mackay 2017-08-22 12:17:28 +09:00
parent 215bd4208f
commit ba6ca9511d

View File

@ -113,11 +113,6 @@ void Copter::init_compass()
void Copter::init_optflow() void Copter::init_optflow()
{ {
#if OPTFLOW == ENABLED #if OPTFLOW == ENABLED
// exit immediately if not enabled
if (!optflow.enabled()) {
return;
}
// initialise optical flow sensor // initialise optical flow sensor
optflow.init(); optflow.init();
#endif // OPTFLOW == ENABLED #endif // OPTFLOW == ENABLED