Skip to content

RDKEMW-12856: throw early error when IRDB provides empty waveforms#236

Open
egalla204 wants to merge 1 commit into
developfrom
RDKEMW-12856_ruwido-empty-waveform
Open

RDKEMW-12856: throw early error when IRDB provides empty waveforms#236
egalla204 wants to merge 1 commit into
developfrom
RDKEMW-12856_ruwido-empty-waveform

Conversation

@egalla204
Copy link
Copy Markdown
Contributor

@egalla204 egalla204 commented May 18, 2026

In a request for waveforms an IRDB can return an empty array with a successful status. This results in a successful call to the plugin method but an asynchronous failure as a status event later. Its better to return this as an error earlier to the plugin call since we can determine the error condition before sending to the remote.

@egalla204 egalla204 requested a review from a team as a code owner May 18, 2026 22:01
Copilot AI review requested due to automatic review settings May 18, 2026 22:01
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds an early error log when the constructed IR waveforms map is empty, avoiding a call into programIrSignalWaveforms with no codes.

Changes:

  • Detect empty ir_codes map prior to invoking the BLE RCU interface and log an error
  • Preserve existing failure logging when programIrSignalWaveforms returns false

Copy link
Copy Markdown
Contributor

@dwolaver dwolaver left a comment

Choose a reason for hiding this comment

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

QA test time

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.

3 participants