From 59b74261b389c6733b04871771a49f1769b7b127 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Fri, 13 Jan 2012 15:32:01 +0400 Subject: [PATCH] test_menu.cpp: use CFEManager API to get frontend --- src/gui/test_menu.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/gui/test_menu.cpp b/src/gui/test_menu.cpp index 783468139..c602b448c 100644 --- a/src/gui/test_menu.cpp +++ b/src/gui/test_menu.cpp @@ -48,7 +48,7 @@ #include "gui/widget/hintbox.h" #include "gui/scan.h" #include "gui/scan_setup.h" -#include +#include 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);