Copter: remove enabled check from optflow init

This commit is contained in:
Randy Mackay 2017-08-22 12:17:28 +09:00
parent def17582c6
commit 34560fb1fb
1 changed files with 0 additions and 5 deletions

View File

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