From b9804be01cdf96270996eb2ae55da83a43b12b66 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 e14f1efb9e..e3d9882fa4 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)