From 2ab3c5a9c3ce5e14cfed5c4ccb3c3a5f31bc856c Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Tue, 22 Aug 2017 12:17:42 +0900 Subject: [PATCH] Sub: remove enabled check from optflow init --- ArduSub/sensors.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/ArduSub/sensors.cpp b/ArduSub/sensors.cpp index 57dc7adde8..b12c90d1d6 100644 --- a/ArduSub/sensors.cpp +++ b/ArduSub/sensors.cpp @@ -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(); }