Browse Source

AP_IOMCU: run the rcin timer tick in main loop

we no longer run a separate RCIN thread
master
Andrew Tridgell 6 years ago
parent
commit
92d8ef0e76
  1. 2
      libraries/AP_IOMCU/iofirmware/iofirmware.cpp

2
libraries/AP_IOMCU/iofirmware/iofirmware.cpp

@ -8,6 +8,7 @@ @@ -8,6 +8,7 @@
#include <AP_Math/crc.h>
#include "iofirmware.h"
#include "hal.h"
#include <AP_HAL_ChibiOS/RCInput.h>
extern const AP_HAL::HAL &hal;
//#pragma GCC optimize("Og")
@ -200,6 +201,7 @@ void AP_IOMCU_FW::heater_update() @@ -200,6 +201,7 @@ void AP_IOMCU_FW::heater_update()
void AP_IOMCU_FW::rcin_update()
{
((ChibiOS::RCInput *)hal.rcin)->_timer_tick();
if (hal.rcin->new_input()) {
rc_input.count = hal.rcin->num_channels();
rc_input.flags_rc_ok = true;

Loading…
Cancel
Save