Skip to content

Commit

Permalink
no hybrid for bcm3466 t2 tuner
Browse files Browse the repository at this point in the history
  • Loading branch information
BPanther committed Jul 17, 2024
1 parent c5e9ebb commit 2ec2a9c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/zapit/src/frontend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,14 +248,17 @@ void CFrontend::getFEInfo(void)
bool found = false;
while (getline(in, line))
{
if (line.find("NIM Socket "+to_string(fenumber)+":") !=std::string::npos)
if (line.find("NIM Socket " + to_string(fenumber) + ":") != std::string::npos)
found = true;

if ((line.find("Name:") != std::string::npos) && found)
{
//printf("NIM SOCKET: %s\n",line.substr(line.find_first_of(":")+2).c_str());
//printf("NIM SOCKET: %s\n", line.substr(line.find_first_of(":") + 2).c_str());
#if BOXMODEL_VUPLUS_ALL
sprintf(info.name,"%s", line.substr(line.find_first_of(":") + 9).c_str());
// no hybrid for BCM3466 T2 tuner
if (!strncmp(line.substr(line.find_first_of("(") + 1).c_str(), "BCM3466)", 5))
found = false;
#else
std::string tmp = info.name;
sprintf(info.name,"%s (%s)", tmp.c_str(), line.substr(line.find_first_of(":") + 2).c_str());
Expand Down

0 comments on commit 2ec2a9c

Please sign in to comment.