From 2bb99bfe53d661f4563849df2e9167afc216910a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 22 Jan 2018 06:45:31 +1100 Subject: [PATCH] HAL_VRBRAIN: implement _timer_tick in UARTDriver --- libraries/AP_HAL_VRBRAIN/Scheduler.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libraries/AP_HAL_VRBRAIN/Scheduler.cpp b/libraries/AP_HAL_VRBRAIN/Scheduler.cpp index 77403538f8..fbcbfc146e 100644 --- a/libraries/AP_HAL_VRBRAIN/Scheduler.cpp +++ b/libraries/AP_HAL_VRBRAIN/Scheduler.cpp @@ -363,12 +363,12 @@ void *VRBRAINScheduler::_uart_thread(void *arg) sched->delay_microseconds_semaphore(1000); // process any pending serial bytes - ((VRBRAINUARTDriver *)hal.uartA)->_timer_tick(); - ((VRBRAINUARTDriver *)hal.uartB)->_timer_tick(); - ((VRBRAINUARTDriver *)hal.uartC)->_timer_tick(); - ((VRBRAINUARTDriver *)hal.uartD)->_timer_tick(); - ((VRBRAINUARTDriver *)hal.uartE)->_timer_tick(); - ((VRBRAINUARTDriver *)hal.uartF)->_timer_tick(); + hal.uartA->_timer_tick(); + hal.uartB->_timer_tick(); + hal.uartC->_timer_tick(); + hal.uartD->_timer_tick(); + hal.uartE->_timer_tick(); + hal.uartF->_timer_tick(); } return nullptr; }