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 };