AP_HAL_ChibiOS: make a static-const hal a reference to the external symbol

This commit is contained in:
Peter Barker 2020-02-29 18:57:50 +11:00 committed by Andrew Tridgell
parent 3c0eb3d961
commit dc785b61a9
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@
using namespace ChibiOS; 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) : DeviceBus::DeviceBus(uint8_t _thread_priority) :
thread_priority(_thread_priority) thread_priority(_thread_priority)