1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-25 09:15:38 +03:00

A3 and A4 V2 value bug in Logical Switches (Companion)

This commit is contained in:
bsongis 2014-06-11 21:32:48 +02:00
parent 30b660da17
commit eeb9ee8aa2

View file

@ -125,6 +125,8 @@ RawSourceRange RawSource::getRange(bool singleprec)
break; break;
case TELEMETRY_SOURCE_A1: case TELEMETRY_SOURCE_A1:
case TELEMETRY_SOURCE_A2: case TELEMETRY_SOURCE_A2:
case TELEMETRY_SOURCE_A3:
case TELEMETRY_SOURCE_A4:
if (model) { if (model) {
const FrSkyChannelData & channel = model->frsky.channels[index-TELEMETRY_SOURCE_A1]; const FrSkyChannelData & channel = model->frsky.channels[index-TELEMETRY_SOURCE_A1];
float ratio = channel.getRatio(); float ratio = channel.getRatio();