From 2d2fdf8bd070c33c85b22d5cca20a4eabbb5611a Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sat, 29 Feb 2020 18:57:50 +1100 Subject: [PATCH] AP_HAL_ChibiOS: make a static-const hal a reference to the external symbol --- libraries/AP_HAL_ChibiOS/Device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)