Merge pull request #2029 from davxlw/davxlw_override_next

Typo correction
This commit is contained in:
Bertrand Songis
2015-01-18 22:11:12 +01:00
@@ -1,6 +1,6 @@
/* /*
* Author - Bertrand Songis <bsongis@gmail.com> * Author - Bertrand Songis <bsongis@gmail.com>
* *
* Based on th9x -> http://code.google.com/p/th9x/ * Based on th9x -> http://code.google.com/p/th9x/
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
@@ -120,7 +120,7 @@ template <class T>
bool OpenTxEepromInterface::loadModel(ModelData &model, uint8_t *data, int index, unsigned int stickMode) bool OpenTxEepromInterface::loadModel(ModelData &model, uint8_t *data, int index, unsigned int stickMode)
{ {
T _model; T _model;
if (!data) { if (!data) {
// load from EEPROM // load from EEPROM
efile->openRd(FILE_MODEL(index)); efile->openRd(FILE_MODEL(index));
@@ -316,7 +316,7 @@ bool OpenTxEepromInterface::load(RadioData &radioData, const uint8_t *eeprom, in
{ {
std::cout << "trying " << getName() << " import..."; std::cout << "trying " << getName() << " import...";
if (size != getEEpromSize()) { if (size != getEEpromSize()) {
if (size==4096) { if (size==4096) {
int notnull=false; int notnull=false;
for (int i=2048; i<4096; i++) { for (int i=2048; i<4096; i++) {
@@ -344,7 +344,7 @@ bool OpenTxEepromInterface::load(RadioData &radioData, const uint8_t *eeprom, in
} }
efile->openRd(FILE_GENERAL); efile->openRd(FILE_GENERAL);
uint8_t version; uint8_t version;
if (efile->readRlc2(&version, 1) != 1) { if (efile->readRlc2(&version, 1) != 1) {
std::cout << " no\n"; std::cout << " no\n";
@@ -362,7 +362,7 @@ bool OpenTxEepromInterface::load(RadioData &radioData, const uint8_t *eeprom, in
std::cout << " ko\n"; std::cout << " ko\n";
return false; return false;
} }
std::cout << " variant " << radioData.generalSettings.variant; std::cout << " variant " << radioData.generalSettings.variant;
for (int i=0; i<getMaxModels(); i++) { for (int i=0; i<getMaxModels(); i++) {
if (!loadModel(version, radioData.models[i], NULL, i, radioData.generalSettings.variant, radioData.generalSettings.stickMode+1)) { if (!loadModel(version, radioData.models[i], NULL, i, radioData.generalSettings.variant, radioData.generalSettings.stickMode+1)) {
@@ -407,7 +407,7 @@ int OpenTxEepromInterface::save(uint8_t *eeprom, RadioData &radioData, uint32_t
if (board == BOARD_M128) { if (board == BOARD_M128) {
variant |= M128_VARIANT; variant |= M128_VARIANT;
} }
int result = saveGeneral<OpenTxGeneralData>(radioData.generalSettings, board, version, variant); int result = saveGeneral<OpenTxGeneralData>(radioData.generalSettings, board, version, variant);
if (!result) { if (!result) {
return 0; return 0;
@@ -592,7 +592,7 @@ int OpenTxFirmware::getCapability(const Capability capability)
else else
return 16; return 16;
case SafetyChannelCustomFunction: case SafetyChannelCustomFunction:
return id.contains("noovveridech") ? 0 : 1; return id.contains("nooverridech") ? 0 : 1;
case LogicalSwitches: case LogicalSwitches:
if (IS_ARM(board)) if (IS_ARM(board))
return 32; return 32;
@@ -677,7 +677,7 @@ int OpenTxFirmware::getCapability(const Capability capability)
case PPMCenter: case PPMCenter:
return (IS_TARANIS(board) ? 500 : (id.contains("ppmca") ? 125 : 0)); return (IS_TARANIS(board) ? 500 : (id.contains("ppmca") ? 125 : 0));
case PPMUnitMicroseconds: case PPMUnitMicroseconds:
return id.contains("ppmus") ? 1 : 0; return id.contains("ppmus") ? 1 : 0;
case SYMLimits: case SYMLimits:
return 1; return 1;
case OptrexDisplay: case OptrexDisplay:
@@ -832,7 +832,7 @@ int OpenTxEepromInterface::isAvailable(Protocol proto, int port)
break; break;
default: default:
return 0; return 0;
} }
} }
else { else {
switch (proto) { switch (proto) {
@@ -1263,7 +1263,7 @@ void registerOpenTxFirmwares()
openTx->addOption("bluetooth", QObject::tr("Bluetooth interface")); openTx->addOption("bluetooth", QObject::tr("Bluetooth interface"));
addOpenTxCommonOptions(openTx); addOpenTxCommonOptions(openTx);
firmwares.push_back(openTx); firmwares.push_back(openTx);
/* 9XR-Pro */ /* 9XR-Pro */
openTx = new OpenTxFirmware("opentx-9xrpro", QObject::tr("OpenTX for 9XR-PRO"), BOARD_9XRPRO); openTx = new OpenTxFirmware("opentx-9xrpro", QObject::tr("OpenTX for 9XR-PRO"), BOARD_9XRPRO);
openTx->addOption("heli", QObject::tr("Enable HELI menu and cyclic mix support")); openTx->addOption("heli", QObject::tr("Enable HELI menu and cyclic mix support"));
@@ -1282,7 +1282,7 @@ void registerOpenTxFirmwares()
openTx->addOption("bluetooth", QObject::tr("Bluetooth interface")); openTx->addOption("bluetooth", QObject::tr("Bluetooth interface"));
addOpenTxCommonOptions(openTx); addOpenTxCommonOptions(openTx);
firmwares.push_back(openTx); firmwares.push_back(openTx);
/* Taranis board */ /* Taranis board */
openTx = new OpenTxFirmware("opentx-taranis", QObject::tr("OpenTX for FrSky Taranis"), BOARD_TARANIS); openTx = new OpenTxFirmware("opentx-taranis", QObject::tr("OpenTX for FrSky Taranis"), BOARD_TARANIS);
openTx->addOption("noheli", QObject::tr("Disable HELI menu and cyclic mix support")); openTx->addOption("noheli", QObject::tr("Disable HELI menu and cyclic mix support"));
@@ -1292,7 +1292,7 @@ void registerOpenTxFirmwares()
openTx->addOption("nojoystick", QObject::tr("No Joystick emulation inside the FW (only Mass Storage as in the Bootloader)")); openTx->addOption("nojoystick", QObject::tr("No Joystick emulation inside the FW (only Mass Storage as in the Bootloader)"));
addOpenTxCommonOptions(openTx); addOpenTxCommonOptions(openTx);
firmwares.push_back(openTx); firmwares.push_back(openTx);
/* Taranis Plus board */ /* Taranis Plus board */
openTx = new OpenTxFirmware("opentx-taranisplus", QObject::tr("OpenTX for FrSky Taranis Plus"), BOARD_TARANIS_PLUS); openTx = new OpenTxFirmware("opentx-taranisplus", QObject::tr("OpenTX for FrSky Taranis Plus"), BOARD_TARANIS_PLUS);
openTx->addOption("noheli", QObject::tr("Disable HELI menu and cyclic mix support")); openTx->addOption("noheli", QObject::tr("Disable HELI menu and cyclic mix support"));