From 7520cdef2fbceae90515c4d2b1946107c88ef067 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Tue, 17 Sep 2019 11:24:09 -0700 Subject: [PATCH] AP_RangeFinder: update minimum fw version of TFMiniPlus Version 2.0.3 has important fixes to avoid having the sensor to lock up. Let's make sure we check for it and warn on console. --- .../AP_RangeFinder/AP_RangeFinder_Benewake_TFMiniPlus.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_RangeFinder/AP_RangeFinder_Benewake_TFMiniPlus.cpp b/libraries/AP_RangeFinder/AP_RangeFinder_Benewake_TFMiniPlus.cpp index acbafe80a6..23985e0135 100644 --- a/libraries/AP_RangeFinder/AP_RangeFinder_Benewake_TFMiniPlus.cpp +++ b/libraries/AP_RangeFinder/AP_RangeFinder_Benewake_TFMiniPlus.cpp @@ -99,8 +99,8 @@ bool AP_RangeFinder_Benewake_TFMiniPlus::init() goto fail; } - if (val[5] * 10000 + val[4] * 100 + val[3] < 10706) { - hal.console->printf(DRIVER ": minimum required FW version 1.7.6, but version %u.%u.%u found\n", + if (val[5] * 10000 + val[4] * 100 + val[3] < 20003) { + hal.console->printf(DRIVER ": minimum required FW version 2.0.3, but version %u.%u.%u found\n", val[5], val[4], val[3]); goto fail; }