A1/A2/A3/A4 skipped in the sources list when their range is not defined

This commit is contained in:
bsongis
2014-05-25 14:30:51 +02:00
parent 59d121e5d4
commit a6c01f990b
+4
View File
@@ -1443,6 +1443,10 @@ bool isTelemetrySourceAvailable(int source)
return false;
#endif
if (source >= TELEM_A1 && source <= TELEM_A4) {
return g_model.frsky.channels[source-TELEM_A1].ratio != 0;
}
#if !defined(RTCLOCK)
if (source == TELEM_TX_TIME)
return false;