From 2055f264e5aa95c380e90fa5f62f3c25e054d0ee Mon Sep 17 00:00:00 2001 From: Eugene Shamaev Date: Sat, 9 Jun 2018 10:58:47 +0300 Subject: [PATCH] AP_HAL_ChibiOS: helper func --- libraries/AP_HAL_ChibiOS/Scheduler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_HAL_ChibiOS/Scheduler.cpp b/libraries/AP_HAL_ChibiOS/Scheduler.cpp index 5305591f52..1313ba8081 100644 --- a/libraries/AP_HAL_ChibiOS/Scheduler.cpp +++ b/libraries/AP_HAL_ChibiOS/Scheduler.cpp @@ -308,7 +308,7 @@ void Scheduler::_uavcan_thread(void *arg) while (true) { sched->delay_microseconds(100); for (int i = 0; i < MAX_NUMBER_OF_CAN_INTERFACES; i++) { - if(hal.can_mgr[i] != nullptr) { + if (AP_UAVCAN::get_uavcan(i) != nullptr) { CANManager::from(hal.can_mgr[i])->_timer_tick(); } }