1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-24 16:55:20 +03:00

AUTOSWITCH enabled with Stay function

This commit is contained in:
Bertrand Songis 2014-02-07 22:10:06 +01:00
parent 8f0a318cc3
commit 2e35e095c6

View file

@ -4539,8 +4539,14 @@ void menuModelCustomSwitches(uint8_t event)
v1_min = SWSRC_OFF+1; v1_max = SWSRC_ON-1;
v2_min=-129; v2_max = 122;
v3_max = 222 - cs->v2;
INCDEC_SET_FLAG(0);
INCDEC_ENABLE_CHECK(NULL);
if (horz == 1) {
INCDEC_SET_FLAG(INCDEC_SWITCH);
INCDEC_ENABLE_CHECK(isSwitchAvailable);
}
else {
INCDEC_SET_FLAG(0);
INCDEC_ENABLE_CHECK(NULL);
}
}
#endif
else if (cstate == CS_FAMILY_COMP) {