fix(gx12): periodically read IO expander in mixer (#7105)
This commit is contained in:
@@ -35,6 +35,9 @@
|
||||
#include "luminosity_sensor.h"
|
||||
#endif
|
||||
|
||||
#if defined(RADIO_GX12)
|
||||
#include "targets/taranis/gx12/bsp_io.h"
|
||||
#endif
|
||||
#define DELAY_POS_MARGIN 3
|
||||
|
||||
uint8_t s_mixer_first_run_done = false;
|
||||
@@ -1144,6 +1147,11 @@ void evalMixes(uint8_t tick10ms)
|
||||
static uint16_t delta = 0;
|
||||
static uint16_t flightModesFade = 0;
|
||||
|
||||
#if defined(RADIO_GX12)
|
||||
// see #6159
|
||||
_poll_switches();
|
||||
#endif
|
||||
|
||||
uint8_t fm = getFlightMode();
|
||||
|
||||
if (lastFlightMode != fm) {
|
||||
|
||||
Reference in New Issue
Block a user