Sub: remove enabled check from optflow init

This commit is contained in:
Randy Mackay 2017-08-22 12:17:42 +09:00
parent 0a060a0e08
commit 3281f348b1

View File

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