Sub: remove enabled check from optflow init
This commit is contained in:
parent
0a060a0e08
commit
3281f348b1
@ -128,11 +128,6 @@ void Sub::compass_accumulate(void)
|
|||||||
#if OPTFLOW == ENABLED
|
#if OPTFLOW == ENABLED
|
||||||
void Sub::init_optflow()
|
void Sub::init_optflow()
|
||||||
{
|
{
|
||||||
// exit immediately if not enabled
|
|
||||||
if (!optflow.enabled()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// initialise optical flow sensor
|
// initialise optical flow sensor
|
||||||
optflow.init();
|
optflow.init();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user