RC_Channel: add and use SetFocusResult

This commit is contained in:
Peter Barker 2023-06-21 16:03:39 +10:00 committed by Peter Barker
parent 485fee36ab
commit daf56c5ab1
1 changed files with 2 additions and 2 deletions

View File

@ -972,7 +972,7 @@ bool RC_Channel::do_aux_function_camera_manual_focus(const AuxSwitchPos ch_flag)
focus_step = -1; focus_step = -1;
break; break;
} }
return camera->set_focus(FocusType::RATE, focus_step); return camera->set_focus(FocusType::RATE, focus_step) == SetFocusResult::ACCEPTED;
} }
bool RC_Channel::do_aux_function_camera_auto_focus(const AuxSwitchPos ch_flag) bool RC_Channel::do_aux_function_camera_auto_focus(const AuxSwitchPos ch_flag)
@ -982,7 +982,7 @@ bool RC_Channel::do_aux_function_camera_auto_focus(const AuxSwitchPos ch_flag)
if (camera == nullptr) { if (camera == nullptr) {
return false; return false;
} }
return camera->set_focus(FocusType::AUTO, 0); return camera->set_focus(FocusType::AUTO, 0) == SetFocusResult::ACCEPTED;
} }
return false; return false;
} }