mirror of https://github.com/ArduPilot/ardupilot
AP_Frsky_Telem: use fence enable_configured()
This commit is contained in:
parent
0c6ea4790d
commit
d16615923d
|
@ -153,10 +153,10 @@ MAV_RESULT AP_Frsky_MAVliteMsgHandler::handle_command_do_fence_enable(const mavl
|
||||||
|
|
||||||
switch ((uint16_t)mav_command_long.param1) {
|
switch ((uint16_t)mav_command_long.param1) {
|
||||||
case 0:
|
case 0:
|
||||||
fence->enable(false);
|
fence->enable_configured(false);
|
||||||
return MAV_RESULT_ACCEPTED;
|
return MAV_RESULT_ACCEPTED;
|
||||||
case 1:
|
case 1:
|
||||||
fence->enable(true);
|
fence->enable_configured(true);
|
||||||
return MAV_RESULT_ACCEPTED;
|
return MAV_RESULT_ACCEPTED;
|
||||||
default:
|
default:
|
||||||
return MAV_RESULT_FAILED;
|
return MAV_RESULT_FAILED;
|
||||||
|
|
Loading…
Reference in New Issue