Skip to content

Commit

Permalink
fix(cpn): bit indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
elecpower committed Jul 16, 2023
1 parent 34f81f7 commit 699d406
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions companion/src/firmwares/moduledata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -683,12 +683,12 @@ AbstractStaticItemModel * ModuleData::telemetryBaudrateItemModel(unsigned int p

QString ModuleData::afhds2aMode1ToString() const
{
return afhds2aMode1List.at(Helpers::getBitmappedValue(flysky.mode, 1));
return afhds2aMode1List.at(Helpers::getBitmappedValue(flysky.mode, 0));
}

QString ModuleData::afhds2aMode2ToString() const
{
return afhds2aMode2List.at(Helpers::getBitmappedValue(flysky.mode, 2));
return afhds2aMode2List.at(Helpers::getBitmappedValue(flysky.mode, 1));
}

QString ModuleData::afhds3PhyModeToString() const
Expand Down

0 comments on commit 699d406

Please sign in to comment.