mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-18 06:38:29 -04:00
AP_RangeFinder: fixed use of configured() vs configured_in_storage()
This commit is contained in:
parent
72470e290c
commit
5413893c91
@ -175,8 +175,9 @@ RangeFinder::RangeFinder()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void RangeFinder::convert_params(void) {
|
void RangeFinder::convert_params(void) {
|
||||||
if (params[0].type.configured_in_storage()) {
|
if (params[0].type.configured()) {
|
||||||
// _params[0]._type will always be configured in storage after conversion is done the first time
|
// _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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user