File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ All notable changes to this RDK Service will be documented in this file.
16
16
17
17
* For more details, refer to [ versioning] ( https://github.com/rdkcentral/rdkservices#versioning ) section under Main README.
18
18
19
+ ## [ 3.4.5] - 2025-06-02
20
+ ### Updated
21
+ - Updated setDeepSleepTimer to accept timeout only for 10 days max sec
22
+
19
23
## [ 3.4.4] - 2025-05-28
20
24
### Security
21
25
- Added catch to handle crash when reading territory
Original file line number Diff line number Diff line change 1547
1547
}
1548
1548
},
1549
1549
"setDeepSleepTimer" : {
1550
- "summary" : " Sets the deep sleep timeout period." ,
1550
+ "summary" : " Sets the deep sleep timeout period. Max accepted value 864000(10 days). If larger value passed it will consider a 0 " ,
1551
1551
"params" : {
1552
1552
"type" :" object" ,
1553
1553
"properties" : {
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ using namespace std;
67
67
68
68
#define API_VERSION_NUMBER_MAJOR 3
69
69
#define API_VERSION_NUMBER_MINOR 4
70
- #define API_VERSION_NUMBER_PATCH 4
70
+ #define API_VERSION_NUMBER_PATCH 5
71
71
72
72
#define MAX_REBOOT_DELAY 86400 /* 24Hr = 86400 sec */
73
73
#define TR181_FW_DELAY_REBOOT " Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.AutoReboot.fwDelayReboot"
@@ -1742,10 +1742,17 @@ namespace WPEFramework {
1742
1742
uint32_t SystemServices::setDeepSleepTimer (const JsonObject& parameters,
1743
1743
JsonObject& response)
1744
1744
{
1745
+ LOGINFOMETHOD ();
1745
1746
bool status = false ;
1746
1747
IARM_Bus_PWRMgr_SetDeepSleepTimeOut_Param_t param;
1747
1748
if (parameters.HasLabel (" seconds" )) {
1748
1749
param.timeout = static_cast <unsigned int >(parameters[" seconds" ].Number ());
1750
+ // if maintenence time is more then 10 days set to 0
1751
+ if (param.timeout <0 || param.timeout > 864000 )
1752
+ {
1753
+ param.timeout = 0 ;
1754
+ LOGINFO (" setDeepSleepTimer updated timeout to :%d" ,param.timeout );
1755
+ }
1749
1756
IARM_Result_t res = IARM_Bus_Call (IARM_BUS_PWRMGR_NAME,
1750
1757
IARM_BUS_PWRMGR_API_SetDeepSleepTimeOut, (void *)¶m,
1751
1758
sizeof (param));
You can’t perform that action at this time.
0 commit comments