HAL_ChibiOS: fixed LED_SAFETY attached to FMU with recent DShot updates

This commit is contained in:
Andrew Tridgell 2021-04-30 14:48:25 +10:00
parent 4a9ee19599
commit f9866dc27e

View File

@ -119,6 +119,7 @@ void RCOutput::init()
hal.gpio->pinMode(57, 1);
#endif
hal.scheduler->register_timer_process(FUNCTOR_BIND(this, &RCOutput::safety_update, void));
_initialised = true;
}
@ -1149,8 +1150,6 @@ void RCOutput::trigger_groups(void)
*/
void RCOutput::timer_tick(uint32_t time_out_us)
{
safety_update();
if (serial_group) {
return;
}