fix(gx12): periodically read IO expander in mixer (#7105)

This commit is contained in:
3djc
2026-02-22 10:16:49 +10:00
committed by GitHub
parent 4a8ed1af20
commit e301949335
4 changed files with 70 additions and 54 deletions
+8
View File
@@ -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) {