mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
test_menu.cpp: use CFEManager API to get frontend
This commit is contained in:
@@ -48,7 +48,7 @@
|
|||||||
#include "gui/widget/hintbox.h"
|
#include "gui/widget/hintbox.h"
|
||||||
#include "gui/scan.h"
|
#include "gui/scan.h"
|
||||||
#include "gui/scan_setup.h"
|
#include "gui/scan_setup.h"
|
||||||
#include <zapit/frontend_c.h>
|
#include <zapit/femanager.h>
|
||||||
|
|
||||||
extern int cs_test_card(int unit, char * str);
|
extern int cs_test_card(int unit, char * str);
|
||||||
|
|
||||||
@@ -254,7 +254,8 @@ int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey)
|
|||||||
|
|
||||||
sprintf(scansettings.TP_freq, "%d", freq);
|
sprintf(scansettings.TP_freq, "%d", freq);
|
||||||
#if 0 // not needed ?
|
#if 0 // not needed ?
|
||||||
switch (CFrontend::getInstance()->getInfo()->type)
|
CFrontend * frontend = CFEManager::getInstance()->getFE(0);
|
||||||
|
switch (frontend->getInfo()->type)
|
||||||
{
|
{
|
||||||
case FE_QPSK:
|
case FE_QPSK:
|
||||||
sprintf(scansettings.TP_rate, "%d", tmpI->second.feparams.u.qpsk.symbol_rate);
|
sprintf(scansettings.TP_rate, "%d", tmpI->second.feparams.u.qpsk.symbol_rate);
|
||||||
@@ -279,7 +280,8 @@ int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey)
|
|||||||
|
|
||||||
int freq = 12538000;
|
int freq = 12538000;
|
||||||
sprintf(scansettings.TP_freq, "%d", freq);
|
sprintf(scansettings.TP_freq, "%d", freq);
|
||||||
switch (CFrontend::getInstance()->getInfo()->type)
|
CFrontend * frontend = CFEManager::getInstance()->getFE(0);
|
||||||
|
switch (frontend->getInfo()->type)
|
||||||
{
|
{
|
||||||
case FE_QPSK:
|
case FE_QPSK:
|
||||||
sprintf(scansettings.TP_rate, "%d", 41250*1000);
|
sprintf(scansettings.TP_rate, "%d", 41250*1000);
|
||||||
|
Reference in New Issue
Block a user