Browse Source

AP_UAVCAN: use HAL_ENABLE_LIBUAVCAN_DRIVERS instead of HAL_MAX_CAN_PROTOCOL_DRIVERS

c415-sdk
Tom Pittenger 4 years ago committed by Andrew Tridgell
parent
commit
c807035e02
  1. 2
      libraries/AP_UAVCAN/AP_UAVCAN.cpp
  2. 2
      libraries/AP_UAVCAN/AP_UAVCAN_DNA_Server.cpp
  3. 2
      libraries/AP_UAVCAN/AP_UAVCAN_DNA_Server.h

2
libraries/AP_UAVCAN/AP_UAVCAN.cpp

@ -18,7 +18,7 @@
#include <AP_Common/AP_Common.h> #include <AP_Common/AP_Common.h>
#include <AP_HAL/AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if HAL_MAX_CAN_PROTOCOL_DRIVERS #if HAL_ENABLE_LIBUAVCAN_DRIVERS
#include "AP_UAVCAN.h" #include "AP_UAVCAN.h"
#include <GCS_MAVLink/GCS.h> #include <GCS_MAVLink/GCS.h>

2
libraries/AP_UAVCAN/AP_UAVCAN_DNA_Server.cpp

@ -18,7 +18,7 @@
#include <AP_HAL/AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if HAL_MAX_CAN_PROTOCOL_DRIVERS #if HAL_ENABLE_LIBUAVCAN_DRIVERS
#include "AP_UAVCAN_DNA_Server.h" #include "AP_UAVCAN_DNA_Server.h"
#include "AP_UAVCAN.h" #include "AP_UAVCAN.h"

2
libraries/AP_UAVCAN/AP_UAVCAN_DNA_Server.h

@ -1,7 +1,7 @@
#pragma once #pragma once
#include <AP_HAL/AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if HAL_MAX_CAN_PROTOCOL_DRIVERS #if HAL_ENABLE_LIBUAVCAN_DRIVERS
#include <uavcan/uavcan.hpp> #include <uavcan/uavcan.hpp>
#include <AP_Common/Bitmask.h> #include <AP_Common/Bitmask.h>
#include <StorageManager/StorageManager.h> #include <StorageManager/StorageManager.h>

Loading…
Cancel
Save