mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
tryfix scan frontend selection
This commit is contained in:
@@ -727,15 +727,20 @@ bool CFEManager::canTune(CZapitChannel * channel)
|
|||||||
|
|
||||||
CFrontend * CFEManager::getScanFrontend(t_satellite_position satellitePosition)
|
CFrontend * CFEManager::getScanFrontend(t_satellite_position satellitePosition)
|
||||||
{
|
{
|
||||||
|
delivery_system_t delsys = UNKNOWN_DS;
|
||||||
|
if (SAT_POSITION_CABLE(satellitePosition))
|
||||||
|
delsys = ALL_CABLE;
|
||||||
|
if (SAT_POSITION_TERR(satellitePosition))
|
||||||
|
delsys = ALL_TERR;
|
||||||
CFrontend * frontend = NULL;
|
CFrontend * frontend = NULL;
|
||||||
for(fe_map_iterator_t it = femap.begin(); it != femap.end(); it++) {
|
for(fe_map_iterator_t it = femap.begin(); it != femap.end(); it++) {
|
||||||
CFrontend * mfe = it->second;
|
CFrontend * mfe = it->second;
|
||||||
if (mfe->hasCable() && SAT_POSITION_CABLE(satellitePosition)) {
|
if (mfe->hasCable() && SAT_POSITION_CABLE(satellitePosition) && !mfe->forcedDelivery(delsys)) {
|
||||||
if (mfe->getMode() != CFrontend::FE_MODE_UNUSED) {
|
if (mfe->getMode() != CFrontend::FE_MODE_UNUSED) {
|
||||||
frontend = mfe;
|
frontend = mfe;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else if (mfe->hasTerr() && SAT_POSITION_TERR(satellitePosition)) {
|
} else if (mfe->hasTerr() && SAT_POSITION_TERR(satellitePosition) && !mfe->forcedDelivery(delsys)) {
|
||||||
if (mfe->getMode() != CFrontend::FE_MODE_UNUSED) {
|
if (mfe->getMode() != CFrontend::FE_MODE_UNUSED) {
|
||||||
frontend = mfe;
|
frontend = mfe;
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user