test_menu: fix build

This commit is contained in:
Stefan Seyfried
2013-04-06 11:46:50 +02:00
parent b46a806cb9
commit 4d2f580af0

View File

@@ -55,7 +55,9 @@
#include <gui/widget/messagebox.h> #include <gui/widget/messagebox.h>
#if HAVE_COOL_HARDWARE
extern int cs_test_card(int unit, char * str); extern int cs_test_card(int unit, char * str);
#endif
#ifdef TEST_MENU #ifdef TEST_MENU
CTestMenu::CTestMenu() CTestMenu::CTestMenu()
@@ -165,6 +167,7 @@ int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey)
return res; return res;
} }
#if HAVE_COOL_HARDWARE
else if (actionKey == "card0") else if (actionKey == "card0")
{ {
char str[255]; char str[255];
@@ -211,6 +214,7 @@ int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey)
return res; return res;
} }
#endif
else if (actionKey == "hdd") else if (actionKey == "hdd")
{ {
char buffer[255]; char buffer[255];
@@ -565,8 +569,10 @@ void CTestMenu::showHWTests(CMenuWidget *widget)
widget->addIntroItems(); widget->addIntroItems();
widget->addItem(new CMenuForwarderNonLocalized("VFD", true, NULL, this, "vfd")); widget->addItem(new CMenuForwarderNonLocalized("VFD", true, NULL, this, "vfd"));
widget->addItem(new CMenuForwarderNonLocalized("Network", true, NULL, this, "network")); widget->addItem(new CMenuForwarderNonLocalized("Network", true, NULL, this, "network"));
#if HAVE_COOL_HARDWARE
widget->addItem(new CMenuForwarderNonLocalized("Smartcard 1", true, NULL, this, "card0")); widget->addItem(new CMenuForwarderNonLocalized("Smartcard 1", true, NULL, this, "card0"));
widget->addItem(new CMenuForwarderNonLocalized("Smartcard 2", true, NULL, this, "card1")); widget->addItem(new CMenuForwarderNonLocalized("Smartcard 2", true, NULL, this, "card1"));
#endif
widget->addItem(new CMenuForwarderNonLocalized("HDD", true, NULL, this, "hdd")); widget->addItem(new CMenuForwarderNonLocalized("HDD", true, NULL, this, "hdd"));
CFEManager::getInstance()->setMode(CFEManager::FE_MODE_ALONE); CFEManager::getInstance()->setMode(CFEManager::FE_MODE_ALONE);