mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 09:15:38 +03:00
A2 was also disabled in custom switches in D16 mode
This commit is contained in:
parent
dbf39608eb
commit
fce51a6945
1 changed files with 0 additions and 5 deletions
|
@ -1419,11 +1419,6 @@ bool getSwitch(int8_t swtch)
|
|||
if (cs->v1 >= MIXSRC_FIRST_TELEM) {
|
||||
if ((!TELEMETRY_STREAMING() && cs->v1 >= MIXSRC_FIRST_TELEM+TELEM_FIRST_STREAMED_VALUE-1) || IS_FAI_FORBIDDEN(cs->v1-1))
|
||||
return swtch > 0 ? false : true;
|
||||
|
||||
#if defined (PCBTARANIS)
|
||||
if (cs->v1 == MIXSRC_FIRST_TELEM+TELEM_A2-1 && g_model.moduleData[INTERNAL_MODULE].rfProtocol == RF_PROTO_X16)
|
||||
return swtch > 0 ? false : true;
|
||||
#endif
|
||||
|
||||
y = convertCswTelemValue(cs);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue