fix(radio): Mix delay not working when mix line has a switch (#4364)

This commit is contained in:
philmoz
2023-12-21 11:35:18 +10:00
committed by GitHub
parent 178fabd522
commit b53ccfa515
5 changed files with 58 additions and 39 deletions
+2 -4
View File
@@ -61,9 +61,7 @@ enum MainRequest {
extern uint8_t mainRequestFlags;
#define DELAY_POS_MARGIN 3
PACK(struct SwOn {
PACK(struct MixState {
uint16_t delay:14; // max = 2550
uint8_t activeMix:1;
uint8_t activeExpo:1;
@@ -71,7 +69,7 @@ PACK(struct SwOn {
int16_t prev;
});
extern SwOn swOn[MAX_MIXERS];
extern MixState mixState[MAX_MIXERS];
extern int32_t act[MAX_MIXERS];
// static variables used in evalFlightModeMixes - moved here so they don't interfere with the stack