AP_OpenDroneID: remove duplicate definition of AP_OPENDRONEID_ENABLED

... my guess is conflict resolution caused this
This commit is contained in:
Peter Barker 2023-10-13 12:54:17 +11:00 committed by Peter Barker
parent fcd4152b30
commit 8b67775673
2 changed files with 2 additions and 7 deletions

View File

@ -27,10 +27,11 @@
* and DroneCAN
*/
#include "AP_OpenDroneID.h"
#include "AP_OpenDroneID_config.h"
#if AP_OPENDRONEID_ENABLED
#include "AP_OpenDroneID.h"
#include <AP_HAL/AP_HAL.h>
#include <GCS_MAVLink/GCS.h>
#include <AP_GPS/AP_GPS.h>

View File

@ -27,14 +27,8 @@
#pragma once
#include <AP_HAL/AP_HAL_Boards.h>
#include "AP_OpenDroneID_config.h"
#ifndef AP_OPENDRONEID_ENABLED
// default to off. Enabled in hwdef.dat
#define AP_OPENDRONEID_ENABLED 0
#endif
#if AP_OPENDRONEID_ENABLED
#include <AP_Math/AP_Math.h>