diff --git a/SystemServices/SystemServices.cpp b/SystemServices/SystemServices.cpp index 45a6a22e35..3fabca1835 100644 --- a/SystemServices/SystemServices.cpp +++ b/SystemServices/SystemServices.cpp @@ -273,7 +273,7 @@ bool setPowerState(std::string powerState) } else if (powerState == "DEEP_SLEEP") { param.newState = IARM_BUS_PWRMGR_POWERSTATE_STANDBY_DEEP_SLEEP; } else if (powerState == "LIGHT_SLEEP") { - param.newState = IARM_BUS_PWRMGR_POWERSTATE_STANDBY; + param.newState = IARM_BUS_PWRMGR_POWERSTATE_STANDBY_LIGHT_SLEEP; } else { return false; } @@ -3608,8 +3608,10 @@ namespace WPEFramework { if (res == IARM_RESULT_SUCCESS) { if (param.curState == IARM_BUS_PWRMGR_POWERSTATE_ON) currentState = "ON"; - else if ((param.curState == IARM_BUS_PWRMGR_POWERSTATE_STANDBY) || (param.curState == IARM_BUS_PWRMGR_POWERSTATE_STANDBY_LIGHT_SLEEP) ) - currentState = "STANDBY"; + else if (param.curState == IARM_BUS_PWRMGR_POWERSTATE_STANDBY) + currentState = "STANDBY"; + else if (param.curState == IARM_BUS_PWRMGR_POWERSTATE_STANDBY_LIGHT_SLEEP) + currentState = "LIGHT_SLEEP"; else if ( param.curState == IARM_BUS_PWRMGR_POWERSTATE_STANDBY_DEEP_SLEEP) currentState = "DEEP_SLEEP"; }