A2 was also disabled in custom switches in D16 mode

This commit is contained in:
Andre Bernet
2014-01-05 14:02:25 +01:00
parent c177824601
commit 4ffe49ef01
-5
View File
@@ -1013,11 +1013,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);