mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 16:55:20 +03:00
GvarsOfsNum (er9x) removed
This commit is contained in:
parent
691d568b1a
commit
9a2b668956
5 changed files with 1 additions and 8 deletions
|
@ -977,7 +977,6 @@ enum Capability {
|
|||
GvarsAsSources,
|
||||
GvarsAsWeight,
|
||||
GvarsName,
|
||||
GvarsOfsNum,
|
||||
NoTelemetryProtocol,
|
||||
TelemetryCSFields,
|
||||
TelemetryColsCSFields,
|
||||
|
|
|
@ -243,8 +243,6 @@ int Er9xInterface::getCapability(const Capability capability)
|
|||
return 12;
|
||||
case CustomAndSwitches:
|
||||
return 5;
|
||||
case GvarsOfsNum:
|
||||
return 5;
|
||||
case CSFunc:
|
||||
return 13;
|
||||
case Outputs:
|
||||
|
|
|
@ -279,8 +279,6 @@ int Ersky9xInterface::getCapability(const Capability capability)
|
|||
return 3;
|
||||
case Gvars:
|
||||
return 7;
|
||||
case GvarsOfsNum:
|
||||
return 5;
|
||||
case Switches:
|
||||
return 7;
|
||||
case SwitchesPositions:
|
||||
|
|
|
@ -691,8 +691,6 @@ int Open9xInterface::getCapability(const Capability capability)
|
|||
return (IS_ARM(board) ? 250 : 15);
|
||||
case CSFunc:
|
||||
return 18;
|
||||
case GvarsOfsNum:
|
||||
return 5;
|
||||
case HasSDLogs:
|
||||
return ((board == BOARD_GRUVIN9X || IS_ARM(board)) ? true : false);
|
||||
case LCDWidth:
|
||||
|
|
|
@ -814,7 +814,7 @@ void populateGVCB(QComboBox *b, int value)
|
|||
int selected=0;
|
||||
int nullitem;
|
||||
b->clear();
|
||||
int pgvars=GetEepromInterface()->getCapability(GvarsOfsNum);
|
||||
int pgvars = GetEepromInterface()->getCapability(Gvars);
|
||||
for (int i=-pgvars; i<=-1; i++) {
|
||||
int16_t gval = (int16_t)(-10000+i);
|
||||
b->addItem(QObject::tr("-GV%1").arg(-i), gval);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue