GvarsOfsNum (er9x) removed
This commit is contained in:
@@ -977,7 +977,6 @@ enum Capability {
|
|||||||
GvarsAsSources,
|
GvarsAsSources,
|
||||||
GvarsAsWeight,
|
GvarsAsWeight,
|
||||||
GvarsName,
|
GvarsName,
|
||||||
GvarsOfsNum,
|
|
||||||
NoTelemetryProtocol,
|
NoTelemetryProtocol,
|
||||||
TelemetryCSFields,
|
TelemetryCSFields,
|
||||||
TelemetryColsCSFields,
|
TelemetryColsCSFields,
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user