1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-26 09:45:21 +03:00

A2 was also disabled in custom switches in D16 mode

This commit is contained in:
Andre Bernet 2014-01-04 20:41:19 +01:00
parent dbf39608eb
commit fce51a6945

View file

@ -1420,11 +1420,6 @@ bool getSwitch(int8_t swtch)
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);
#if defined(FRSKY_HUB) && defined(GAUGES)