Skip to content

Commit

Permalink
LLAMA-15793: wpeframework xcast crash
Browse files Browse the repository at this point in the history
Signed-off-by: apatel859 <[email protected]>
  • Loading branch information
apatel859 committed Nov 1, 2024
1 parent 6eef9d2 commit fcb7a16
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions XCast/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ All notable changes to this RDK Service will be documented in this file.
* Changes in CHANGELOG should be updated when commits are added to the main or release branches. There should be one CHANGELOG entry per JIRA Ticket. This is not enforced on sprint branches since there could be multiple changes for the same JIRA ticket during development.

* For more details, refer to [versioning](https://github.com/rdkcentral/rdkservices#versioning) section under Main README.
## [1.0.21] - 2024-10-31
### Fixed
- Power mode envent handling only when plugin enabled

## [1.0.20] - 2024-06-28
### Added
Expand Down
4 changes: 2 additions & 2 deletions XCast/XCast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ using namespace std;

#define API_VERSION_NUMBER_MAJOR 1
#define API_VERSION_NUMBER_MINOR 0
#define API_VERSION_NUMBER_PATCH 20
#define API_VERSION_NUMBER_PATCH 21

namespace WPEFramework {

Expand Down Expand Up @@ -179,7 +179,7 @@ void XCast::DeinitializeIARM()
}
void XCast::powerModeChange(const char *owner, IARM_EventId_t eventId, void *data, size_t len)
{
if (strcmp(owner, IARM_BUS_PWRMGR_NAME) == 0) {
if (XCast::m_xcastEnable && strcmp(owner, IARM_BUS_PWRMGR_NAME) == 0) {
if (eventId == IARM_BUS_PWRMGR_EVENT_MODECHANGED ) {
IARM_Bus_PWRMgr_EventData_t *param = (IARM_Bus_PWRMgr_EventData_t *)data;
LOGINFO("Event IARM_BUS_PWRMGR_EVENT_MODECHANGED: State Changed %d -- > %d\r",
Expand Down

0 comments on commit fcb7a16

Please sign in to comment.