diff --git a/src/zapit/include/zapit/frontend_c.h b/src/zapit/include/zapit/frontend_c.h index f1344a368..5ae39ae59 100644 --- a/src/zapit/include/zapit/frontend_c.h +++ b/src/zapit/include/zapit/frontend_c.h @@ -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; diff --git a/src/zapit/include/zapit/frontend_types.h b/src/zapit/include/zapit/frontend_types.h index eb0a85e89..409f981dd 100644 --- a/src/zapit/include/zapit/frontend_types.h +++ b/src/zapit/include/zapit/frontend_types.h @@ -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__ diff --git a/src/zapit/src/femanager.cpp b/src/zapit/src/femanager.cpp index 1ecf4a614..9838b8ade 100644 --- a/src/zapit/src/femanager.cpp +++ b/src/zapit/src/femanager.cpp @@ -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());