Sub: remove enabled check from optflow init

This commit is contained in:
Randy Mackay 2017-08-22 12:17:42 +09:00
parent 8cd5607231
commit 2ab3c5a9c3
1 changed files with 0 additions and 5 deletions

View File

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