Browse Source

AP_UAVCAN: cleanup ifdefs for SLCAN enable

master
Andrew Tridgell 5 years ago
parent
commit
08b3bc4506
  1. 5
      libraries/AP_UAVCAN/AP_UAVCAN_SLCAN.cpp
  2. 6
      libraries/AP_UAVCAN/AP_UAVCAN_SLCAN.h

5
libraries/AP_UAVCAN/AP_UAVCAN_SLCAN.cpp

@ -19,7 +19,7 @@ @@ -19,7 +19,7 @@
#include <AP_HAL/AP_HAL.h>
#if HAL_WITH_UAVCAN && !HAL_MINIMIZE_FEATURES && CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
#if AP_UAVCAN_SLCAN_ENABLED
#include "AP_UAVCAN_SLCAN.h"
#include <AP_SerialManager/AP_SerialManager.h>
@ -568,4 +568,5 @@ void SLCAN::CANManager::reader_trampoline(void) @@ -568,4 +568,5 @@ void SLCAN::CANManager::reader_trampoline(void)
}
}
#endif //HAL_WITH_UAVCAN
#endif // AP_UAVCAN_SLCAN_ENABLED

6
libraries/AP_UAVCAN/AP_UAVCAN_SLCAN.h

@ -2,7 +2,8 @@ @@ -2,7 +2,8 @@
#pragma once
#include <AP_HAL/AP_HAL.h>
#if HAL_WITH_UAVCAN && CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
#if AP_UAVCAN_SLCAN_ENABLED
#include <AP_UAVCAN/AP_UAVCAN.h>
#include "AP_HAL/utility/RingBuffer.h"
@ -235,4 +236,5 @@ public: @@ -235,4 +236,5 @@ public:
}
#include <AP_HAL_ChibiOS/CANSerialRouter.h>
#endif //#if HAL_WITH_UAVCAN && !HAL_MINIMIZE_FEATURES
#endif // AP_UAVCAN_SLCAN_ENABLED

Loading…
Cancel
Save