AP_Relay: use correct define for DroneCAN relay

This commit is contained in:
Iampete1 2024-01-17 13:03:39 +00:00 committed by Andrew Tridgell
parent 0151dabf52
commit cbe22af35f
1 changed files with 2 additions and 2 deletions

View File

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