test_menu.cpp: use CFEManager API to get frontend

Origin commit data
------------------
Commit: 59b74261b3
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-01-13 (Fri, 13 Jan 2012)
This commit is contained in:
[CST] Focus
2012-01-13 15:32:01 +04:00
parent eee9bd87e2
commit 4be22a9e04

View File

@@ -48,7 +48,7 @@
#include "gui/widget/hintbox.h"
#include "gui/scan.h"
#include "gui/scan_setup.h"
#include <zapit/frontend_c.h>
#include <zapit/femanager.h>
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);
#if 0 // not needed ?
switch (CFrontend::getInstance()->getInfo()->type)
CFrontend * frontend = CFEManager::getInstance()->getFE(0);
switch (frontend->getInfo()->type)
{
case FE_QPSK:
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;
sprintf(scansettings.TP_freq, "%d", freq);
switch (CFrontend::getInstance()->getInfo()->type)
CFrontend * frontend = CFEManager::getInstance()->getFE(0);
switch (frontend->getInfo()->type)
{
case FE_QPSK:
sprintf(scansettings.TP_rate, "%d", 41250*1000);