From 5413893c9120af1574829fad0692992670dd2c89 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 12 May 2022 08:04:37 +1000 Subject: [PATCH] AP_RangeFinder: fixed use of configured() vs configured_in_storage() --- libraries/AP_RangeFinder/AP_RangeFinder.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libraries/AP_RangeFinder/AP_RangeFinder.cpp b/libraries/AP_RangeFinder/AP_RangeFinder.cpp index 7b789fb529..7e6ad3824d 100644 --- a/libraries/AP_RangeFinder/AP_RangeFinder.cpp +++ b/libraries/AP_RangeFinder/AP_RangeFinder.cpp @@ -175,8 +175,9 @@ RangeFinder::RangeFinder() } void RangeFinder::convert_params(void) { - if (params[0].type.configured_in_storage()) { - // _params[0]._type will always be configured in storage after conversion is done the first time + if (params[0].type.configured()) { + // _params[0]._type will always be configured after conversion is done the first time + // or the user has set a type in a defaults.parm file or via apj tool return; }