Skip to content

Commit

Permalink
AP_Camera: integrate HAL_SET_CAMERA_SOURCE_ENABLED
Browse files Browse the repository at this point in the history
  • Loading branch information
rmackay9 committed Mar 22, 2024
1 parent 088dc98 commit 614f115
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/AP_Camera/AP_Camera_Mount.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,12 @@ bool AP_Camera_Mount::set_lens(uint8_t lens)
// set_camera_source is functionally the same as set_lens except primary and secondary lenses are specified by type
bool AP_Camera_Mount::set_camera_source(AP_Camera::CameraSource primary_source, AP_Camera::CameraSource secondary_source)
{
#if HAL_MOUNT_SET_CAMERA_SOURCE_ENABLED
AP_Mount* mount = AP::mount();
if (mount != nullptr) {
return mount->set_camera_source(get_mount_instance(), (uint8_t)primary_source, (uint8_t)secondary_source);
}
#endif
return false;
}

Expand Down

0 comments on commit 614f115

Please sign in to comment.