From 3281f348b10fcd8a52907abc3458ed116eca8266 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 d4c31e7341..eaf8e89d4c 100644 --- a/ArduSub/sensors.cpp +++ b/ArduSub/sensors.cpp @@ -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(); }