AP_SmartRTL: params always use set method

This commit is contained in:
Iampete1 2022-07-05 04:08:57 +01:00 committed by Peter Hall
parent a0fc8cc46a
commit 0cb825e64d
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ void AP_SmartRTL::init()
}
// constrain the path length, in case the user decided to make the path unreasonably long.
_points_max = constrain_int16(_points_max, 0, SMARTRTL_POINTS_MAX);
_points_max.set(constrain_int16(_points_max, 0, SMARTRTL_POINTS_MAX));
// check if user has disabled SmartRTL
if (_points_max == 0 || !is_positive(_accuracy)) {