diff --git a/libraries/AP_HAL_ChibiOS/Device.cpp b/libraries/AP_HAL_ChibiOS/Device.cpp index 7a0171ac38..67e8c56fbd 100644 --- a/libraries/AP_HAL_ChibiOS/Device.cpp +++ b/libraries/AP_HAL_ChibiOS/Device.cpp @@ -31,7 +31,7 @@ using namespace ChibiOS; -static const AP_HAL::HAL &hal = AP_HAL::get_HAL(); +extern const AP_HAL::HAL& hal; DeviceBus::DeviceBus(uint8_t _thread_priority) : thread_priority(_thread_priority)