1
0
Fork 0
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:
Bertrand Songis 2014-01-09 18:53:35 +01:00
parent 691d568b1a
commit 9a2b668956
5 changed files with 1 additions and 8 deletions

View file

@ -977,7 +977,6 @@ enum Capability {
GvarsAsSources, GvarsAsSources,
GvarsAsWeight, GvarsAsWeight,
GvarsName, GvarsName,
GvarsOfsNum,
NoTelemetryProtocol, NoTelemetryProtocol,
TelemetryCSFields, TelemetryCSFields,
TelemetryColsCSFields, TelemetryColsCSFields,

View file

@ -243,8 +243,6 @@ int Er9xInterface::getCapability(const Capability capability)
return 12; return 12;
case CustomAndSwitches: case CustomAndSwitches:
return 5; return 5;
case GvarsOfsNum:
return 5;
case CSFunc: case CSFunc:
return 13; return 13;
case Outputs: case Outputs:

View file

@ -279,8 +279,6 @@ int Ersky9xInterface::getCapability(const Capability capability)
return 3; return 3;
case Gvars: case Gvars:
return 7; return 7;
case GvarsOfsNum:
return 5;
case Switches: case Switches:
return 7; return 7;
case SwitchesPositions: case SwitchesPositions:

View file

@ -691,8 +691,6 @@ int Open9xInterface::getCapability(const Capability capability)
return (IS_ARM(board) ? 250 : 15); return (IS_ARM(board) ? 250 : 15);
case CSFunc: case CSFunc:
return 18; return 18;
case GvarsOfsNum:
return 5;
case HasSDLogs: case HasSDLogs:
return ((board == BOARD_GRUVIN9X || IS_ARM(board)) ? true : false); return ((board == BOARD_GRUVIN9X || IS_ARM(board)) ? true : false);
case LCDWidth: case LCDWidth:

View file

@ -814,7 +814,7 @@ void populateGVCB(QComboBox *b, int value)
int selected=0; int selected=0;
int nullitem; int nullitem;
b->clear(); b->clear();
int pgvars=GetEepromInterface()->getCapability(GvarsOfsNum); int pgvars = GetEepromInterface()->getCapability(Gvars);
for (int i=-pgvars; i<=-1; i++) { for (int i=-pgvars; i<=-1; i++) {
int16_t gval = (int16_t)(-10000+i); int16_t gval = (int16_t)(-10000+i);
b->addItem(QObject::tr("-GV%1").arg(-i), gval); b->addItem(QObject::tr("-GV%1").arg(-i), gval);