mirror of https://github.com/ArduPilot/ardupilot
Sub: remove enabled check from optflow init
This commit is contained in:
parent
8cd5607231
commit
2ab3c5a9c3
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue