diff --git a/libraries/AP_OpenDroneID/AP_OpenDroneID.h b/libraries/AP_OpenDroneID/AP_OpenDroneID.h index 69423431a3..105c9fd943 100644 --- a/libraries/AP_OpenDroneID/AP_OpenDroneID.h +++ b/libraries/AP_OpenDroneID/AP_OpenDroneID.h @@ -28,6 +28,7 @@ #pragma once #include +#include "AP_OpenDroneID_config.h" #ifndef AP_OPENDRONEID_ENABLED // default to off. Enabled in hwdef.dat diff --git a/libraries/AP_OpenDroneID/AP_OpenDroneID_config.h b/libraries/AP_OpenDroneID/AP_OpenDroneID_config.h new file mode 100644 index 0000000000..d1bf00b6cb --- /dev/null +++ b/libraries/AP_OpenDroneID/AP_OpenDroneID_config.h @@ -0,0 +1,8 @@ +#pragma once + +#include + +#ifndef AP_OPENDRONEID_ENABLED +// default to off. Enabled in hwdef.dat +#define AP_OPENDRONEID_ENABLED 0 +#endif