Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 16 additions & 15 deletions helpers/frontpanel.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**

Check failure on line 1 in helpers/frontpanel.cpp

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'Apache-2.0' license found in local file 'helpers/frontpanel.cpp' (Match: rdkcentral/rdkservices/1, 616 lines, url: https://github.com/rdkcentral/rdkservices/archive/refs/tags/GRT_v1.tar.gz, file: helpers/frontpanel.cpp)
* If not stated otherwise in this file or this component's LICENSE
* file the following copyright and licenses apply:
*
Expand Down Expand Up @@ -172,30 +172,29 @@
}
}
#endif

#if 0
globalLedBrightness = device::FrontPanelIndicator::getInstance("Power").getBrightness();
LOGINFO("Power light brightness, %d, power status %d", globalLedBrightness, powerStatus);

profileType = searchRdkProfile();
if (TV != profileType)
{
profileType = searchRdkProfile();
if (TV != profileType)
{
for (uint i = 0; i < fpIndicators.size(); i++)
{
{
LOGWARN("Initializing light %s", fpIndicators.at(i).getName().c_str());
if (powerStatus)
if (powerStatus)
device::FrontPanelIndicator::getInstance(fpIndicators.at(i).getName()).setBrightness(globalLedBrightness, false);

device::FrontPanelIndicator::getInstance(fpIndicators.at(i).getName()).setState(false);
}
}
else
{
device::FrontPanelIndicator::getInstance(fpIndicators.at(i).getName()).setState(false);
}
}
else
{
LOGWARN("Power LED Initializing is not set since we continue with bootloader patern");
}
}

if (powerStatus)
if (powerStatus)
device::FrontPanelIndicator::getInstance("Power").setState(true);

#endif
}
catch (...)
{
Expand Down Expand Up @@ -229,8 +228,10 @@
LOGWARN("Front panel start");
try
{
#if 0
if (powerStatus)
device::FrontPanelIndicator::getInstance("Power").setState(true);
#endif

device::List <device::FrontPanelIndicator> fpIndicators = device::FrontPanelConfig::getInstance().getIndicators();
for (uint i = 0; i < fpIndicators.size(); i++)
Expand Down
Loading