HAL_ChibiOS: run RCIN thread at 1kHz

this gives fast enough response for SBUS parsing on a UART
This commit is contained in:
Andrew Tridgell 2019-08-27 17:47:32 +10:00
parent 6983186210
commit 06b272705e
1 changed files with 1 additions and 1 deletions

View File

@ -380,7 +380,7 @@ void Scheduler::_rcin_thread(void *arg)
sched->delay_microseconds(20000); sched->delay_microseconds(20000);
} }
while (true) { while (true) {
sched->delay_microseconds(2500); sched->delay_microseconds(1000);
((RCInput *)hal.rcin)->_timer_tick(); ((RCInput *)hal.rcin)->_timer_tick();
} }
} }