Skip to content

RDEMW-20793: Get Default FP LED brightness from hostDataDefault - #282

Open
kprasad96 wants to merge 2 commits into
developfrom
feature/RDKEMW-20793-DS-changes-for-FP-LED-brightness
Open

RDEMW-20793: Get Default FP LED brightness from hostDataDefault#282
kprasad96 wants to merge 2 commits into
developfrom
feature/RDKEMW-20793-DS-changes-for-FP-LED-brightness

Conversation

@kprasad96

Copy link
Copy Markdown

@kprasad96
kprasad96 requested a lite review from Copilot August 12, 2026 23:59
@kprasad96
kprasad96 requested a review from a team as a code owner August 12, 2026 23:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates FP (front panel) brightness initialization to source the default power LED brightness from HostPersistence’s default-properties store (i.e., hostDataDefault), removing the compile-time dsFPD_BRIGHTNESS_DEFAULT fallback and the associated migration logic.

Changes:

  • Removed the dsFPD_BRIGHTNESS_DEFAULT macro fallback block (previously defaulted to dsFPD_BRIGHTNESS_MAX).
  • Updated power LED brightness initialization to read from HostPersistence::getDefaultProperty("Power.brightness").
  • Removed logic that conditionally migrated persisted MAX brightness values to a non-MAX default.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread rpc/srv/dsFPD.c
Comment on lines +178 to 182
int maxBrightness = dsFPD_BRIGHTNESS_MAX;

value = device::HostPersistence::getInstance().getProperty("Power.brightness", numberToString(maxBrightness));
value = device::HostPersistence::getInstance().getDefaultProperty("Power.brightness");
_dsPowerBrightness = stringToNumber(value);

Copilot AI review requested due to automatic review settings August 13, 2026 00:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Suppressed comments (1)

rpc/srv/dsFPD.c:184

  • dsFPDMgr_init() now initializes Power.brightness using getDefaultProperty() only, which bypasses the persisted value written by persistHostProperty("Power.brightness", ...) (see same file around line 434). This breaks restoring user-set brightness after reboot. Also, Text.brightness still falls back to dsFPD_BRIGHTNESS_MAX instead of the host default, so defaults come from two different sources.
		try {
		    value = device::HostPersistence::getInstance().getDefaultProperty("Power.brightness");
		    _dsPowerBrightness = stringToNumber(value);
		}
		catch(...) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants