From cbe22af35f14babebb2824a25b8d609c02d7f5db Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Wed, 17 Jan 2024 13:03:39 +0000 Subject: [PATCH] AP_Relay: use correct define for DroneCAN relay --- libraries/AP_Relay/AP_Relay.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Relay/AP_Relay.h b/libraries/AP_Relay/AP_Relay.h index 9d9055cdbe..fa4bcfc9dd 100644 --- a/libraries/AP_Relay/AP_Relay.h +++ b/libraries/AP_Relay/AP_Relay.h @@ -95,7 +95,7 @@ private: // Get relay state from pin number bool get_pin(const int16_t pin) const; -#if HAL_ENABLE_DRONECAN_DRIVERS +#if AP_RELAY_DRONECAN_ENABLED // Virtual DroneCAN pins class DroneCAN { public: @@ -130,7 +130,7 @@ private: } state[num_pins]; } dronecan; -#endif // HAL_ENABLE_DRONECAN_DRIVERS +#endif // AP_RELAY_DRONECAN_ENABLED };