mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 09:51:22 +02:00
adopt scansettings to new frontend handling
Signed-off-by: Thilo Graf <dbt@novatux.de> # Conflicts: # src/gui/scan_setup.cpp
This commit is contained in:
@@ -235,9 +235,15 @@ int CScanTs::exec(CMenuTarget* /*parent*/, const std::string & actionKey)
|
||||
TP.feparams.delsys = (delivery_system_t)scansettings.sat_TP_delsys;
|
||||
TP.feparams.modulation = (fe_modulation_t) scansettings.sat_TP_mod;
|
||||
TP.feparams.pilot = (zapit_pilot_t) scansettings.sat_TP_pilot;
|
||||
TP.feparams.plp_id = atoi(scansettings.sat_TP_pli.c_str());
|
||||
TP.feparams.pls_code = atoi(scansettings.sat_TP_plc.c_str());
|
||||
TP.feparams.plp_id = (unsigned int)atoi(scansettings.sat_TP_pli.c_str());
|
||||
if (TP.feparams.plp_id == 0)
|
||||
TP.feparams.plp_id = NO_STREAM_ID_FILTER;
|
||||
TP.feparams.pls_code = (uint32_t)atoi(scansettings.sat_TP_plc.c_str());
|
||||
if (TP.feparams.pls_code == 0)
|
||||
TP.feparams.pls_code = PLS_Default_Gold_Code;
|
||||
TP.feparams.pls_mode = (fe_pls_mode_t) scansettings.sat_TP_plm;
|
||||
if (TP.feparams.pls_mode == 0)
|
||||
TP.feparams.pls_mode = PLS_Gold;
|
||||
} else if (CFrontend::isTerr(delsys)) {
|
||||
/* DVB-T. TODO: proper menu and parameter setup, not all "AUTO" */
|
||||
TP.feparams.frequency = atoi(scansettings.terrestrial_TP_freq.c_str());
|
||||
@@ -253,7 +259,9 @@ int CScanTs::exec(CMenuTarget* /*parent*/, const std::string & actionKey)
|
||||
TP.feparams.guard_interval = (fe_guard_interval_t)scansettings.terrestrial_TP_guard;
|
||||
TP.feparams.hierarchy = (fe_hierarchy_t)scansettings.terrestrial_TP_hierarchy;
|
||||
TP.feparams.delsys = (delivery_system_t)scansettings.terrestrial_TP_delsys;
|
||||
TP.feparams.plp_id = atoi(scansettings.terrestrial_TP_pli.c_str());
|
||||
TP.feparams.plp_id = (unsigned int)atoi(scansettings.terrestrial_TP_pli.c_str());
|
||||
if (TP.feparams.plp_id == 0)
|
||||
TP.feparams.plp_id = NO_STREAM_ID_FILTER;
|
||||
} else if (CFrontend::isCable(delsys)) {
|
||||
TP.feparams.frequency = atoi(scansettings.cable_TP_freq.c_str());
|
||||
TP.feparams.symbol_rate = atoi(scansettings.cable_TP_rate.c_str());
|
||||
|
Reference in New Issue
Block a user