mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 01:41:12 +02:00
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:
@@ -180,6 +180,7 @@ class CFrontend
|
|||||||
static fe_modulation_t getModulation(const uint8_t modulation);
|
static fe_modulation_t getModulation(const uint8_t modulation);
|
||||||
uint8_t getPolarization(void) const;
|
uint8_t getPolarization(void) const;
|
||||||
const struct dvb_frontend_info *getInfo(void) const { return &info; };
|
const struct dvb_frontend_info *getInfo(void) const { return &info; };
|
||||||
|
bool getRotorSwap() { return config.rotor_swap; }
|
||||||
|
|
||||||
uint32_t getBitErrorRate(void) const;
|
uint32_t getBitErrorRate(void) const;
|
||||||
uint16_t getSignalNoiseRatio(void) const;
|
uint16_t getSignalNoiseRatio(void) const;
|
||||||
|
@@ -39,6 +39,7 @@ typedef struct frontend_config {
|
|||||||
int highVoltage;
|
int highVoltage;
|
||||||
int diseqc_order;
|
int diseqc_order;
|
||||||
int use_usals;
|
int use_usals;
|
||||||
|
int rotor_swap;
|
||||||
} frontend_config_t;
|
} frontend_config_t;
|
||||||
|
|
||||||
#endif // __FRONTEND_TYPES_H__
|
#endif // __FRONTEND_TYPES_H__
|
||||||
|
@@ -243,6 +243,7 @@ bool CFEManager::loadSettings()
|
|||||||
fe_config.uni_qrg = getConfigValue(fe, "uni_qrg", 0);
|
fe_config.uni_qrg = getConfigValue(fe, "uni_qrg", 0);
|
||||||
fe_config.diseqc_order = getConfigValue(fe, "diseqc_order", UNCOMMITED_FIRST);
|
fe_config.diseqc_order = getConfigValue(fe, "diseqc_order", UNCOMMITED_FIRST);
|
||||||
fe_config.use_usals = getConfigValue(fe, "use_usals", 0);
|
fe_config.use_usals = getConfigValue(fe, "use_usals", 0);
|
||||||
|
fe_config.rotor_swap = getConfigValue(fe, "rotor_swap", 0);
|
||||||
|
|
||||||
fe->setRotorSatellitePosition(getConfigValue(fe, "lastSatellitePosition", 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, "uni_qrg", fe_config.uni_qrg);
|
||||||
setConfigValue(fe, "diseqc_order", fe_config.diseqc_order);
|
setConfigValue(fe, "diseqc_order", fe_config.diseqc_order);
|
||||||
setConfigValue(fe, "use_usals", fe_config.use_usals);
|
setConfigValue(fe, "use_usals", fe_config.use_usals);
|
||||||
|
setConfigValue(fe, "rotor_swap", fe_config.rotor_swap);
|
||||||
setConfigValue(fe, "lastSatellitePosition", fe->getRotorSatellitePosition());
|
setConfigValue(fe, "lastSatellitePosition", fe->getRotorSatellitePosition());
|
||||||
setConfigValue(fe, "mode", fe->getMode());
|
setConfigValue(fe, "mode", fe->getMode());
|
||||||
setConfigValue(fe, "master", fe->getMaster());
|
setConfigValue(fe, "master", fe->getMaster());
|
||||||
|
Reference in New Issue
Block a user