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.
This commit is contained in:
Lucas De Marchi 2019-09-17 11:24:09 -07:00 committed by Randy Mackay
parent c40e0ffb6b
commit 7520cdef2f
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}