AP_HAL_ChibiOS: helper func

This commit is contained in:
Eugene Shamaev 2018-06-09 10:58:47 +03:00 committed by Tom Pittenger
parent df6b7ed5ea
commit 2055f264e5
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}
}