part from 382181e289ac990fa1bc69ec528b8c25be6c6537

This commit is contained in:
Jacek Jendrzej
2017-08-21 10:57:18 +02:00
parent e2db590797
commit 0238049daf
2 changed files with 16 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ hw_caps_t *get_hwcaps(void) {
return ∩︀ return ∩︀
int rev = cs_get_revision(); int rev = cs_get_revision();
int chip = cs_get_chip_type(); int chip = cs_get_chip_type();
caps.has_fan = (rev < 8); caps.has_fan = (rev < 8); // see dirty part of hw_caps in neutrino.cpp
caps.has_HDMI = 1; caps.has_HDMI = 1;
caps.has_SCART = (rev != 10); caps.has_SCART = (rev != 10);
caps.has_SCART_input = 0; caps.has_SCART_input = 0;
@@ -41,8 +41,7 @@ hw_caps_t *get_hwcaps(void) {
strcpy(caps.boxname, "HD1"); strcpy(caps.boxname, "HD1");
caps.force_tuner_2G = 1; caps.force_tuner_2G = 1;
break; break;
case 8: // TODO: Neo2 - Twin strcpy(caps.boxname, "Neo"); // see dirty part of hw_caps in neutrino.cpp
strcpy(caps.boxname, "Neo");
caps.force_tuner_2G = 1; caps.force_tuner_2G = 1;
break; break;
case 9: case 9:

View File

@@ -2286,6 +2286,20 @@ TIMER_START();
CheckFastScan(); CheckFastScan();
// dirty part of hw_caps - specify some details after zapit start
if (strcmp(g_info.hw_caps->boxname, "HD1") == 0)
{
// only SAT-HD1 has fan
if (!CFEManager::getInstance()->getFE(0)->hasSat())
g_info.hw_caps->has_fan = 0;
}
if (strcmp(g_info.hw_caps->boxname, "Neo") == 0)
{
// detecting Neo Twin by counting frontends
if (CFEManager::getInstance()->getFrontendCount() > 1)
strcpy(g_info.hw_caps->boxname, "Neo Twin");
}
//timer start //timer start
long timerd_signal = 0; long timerd_signal = 0;
timer_wakeup = false;//init timer_wakeup = false;//init