zapit/src/femanager.cpp: add per frontend rotor swap option

Origin commit data
------------------
Commit: af99ce3a28
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-03-04 (Tue, 04 Mar 2014)
This commit is contained in:
[CST] Focus
2014-03-04 12:22:17 +04:00
parent 5915be184e
commit d947a53f1e
3 changed files with 4 additions and 0 deletions

View File

@@ -180,6 +180,7 @@ class CFrontend
static fe_modulation_t getModulation(const uint8_t modulation);
uint8_t getPolarization(void) const;
const struct dvb_frontend_info *getInfo(void) const { return &info; };
bool getRotorSwap() { return config.rotor_swap; }
uint32_t getBitErrorRate(void) const;
uint16_t getSignalNoiseRatio(void) const;

View File

@@ -39,6 +39,7 @@ typedef struct frontend_config {
int highVoltage;
int diseqc_order;
int use_usals;
int rotor_swap;
} frontend_config_t;
#endif // __FRONTEND_TYPES_H__

View File

@@ -243,6 +243,7 @@ bool CFEManager::loadSettings()
fe_config.uni_qrg = getConfigValue(fe, "uni_qrg", 0);
fe_config.diseqc_order = getConfigValue(fe, "diseqc_order", UNCOMMITED_FIRST);
fe_config.use_usals = getConfigValue(fe, "use_usals", 0);
fe_config.rotor_swap = getConfigValue(fe, "rotor_swap", 0);
fe->setRotorSatellitePosition(getConfigValue(fe, "lastSatellitePosition", 0));
@@ -334,6 +335,7 @@ void CFEManager::saveSettings(bool write)
setConfigValue(fe, "uni_qrg", fe_config.uni_qrg);
setConfigValue(fe, "diseqc_order", fe_config.diseqc_order);
setConfigValue(fe, "use_usals", fe_config.use_usals);
setConfigValue(fe, "rotor_swap", fe_config.rotor_swap);
setConfigValue(fe, "lastSatellitePosition", fe->getRotorSatellitePosition());
setConfigValue(fe, "mode", fe->getMode());
setConfigValue(fe, "master", fe->getMaster());