diff --git a/XCast/XCast.cpp b/XCast/XCast.cpp index 2fe743699d..8cf0116d15 100644 --- a/XCast/XCast.cpp +++ b/XCast/XCast.cpp @@ -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",