AP_Camera: move defintiion of HAL_RUNCAM_ENABLED into AP_Camera_config.h

This commit is contained in:
Peter Barker 2024-08-07 15:45:33 +10:00 committed by Peter Barker
parent 1de229debc
commit ca9a504c4f
2 changed files with 5 additions and 5 deletions

View File

@ -49,3 +49,7 @@
#ifndef AP_CAMERA_SET_CAMERA_SOURCE_ENABLED
#define AP_CAMERA_SET_CAMERA_SOURCE_ENABLED HAL_MOUNT_SET_CAMERA_SOURCE_ENABLED
#endif
#ifndef HAL_RUNCAM_ENABLED
#define HAL_RUNCAM_ENABLED 1
#endif

View File

@ -21,11 +21,7 @@
*/
#pragma once
#include <AP_HAL/AP_HAL_Boards.h>
#ifndef HAL_RUNCAM_ENABLED
#define HAL_RUNCAM_ENABLED 1
#endif
#include "AP_Camera_config.h"
#if HAL_RUNCAM_ENABLED