Skip to content

Commit 5341bef

Browse files
Apply suggestions from code review
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
1 parent ba60af4 commit 5341bef

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/app/clusters/icd-management-server/icd-management-server.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ bool emberAfIcdManagementClusterStayActiveRequestCallback(CommandHandler * comma
430430
response.promisedActiveDuration = Server::GetInstance().GetICDManager().StayActiveRequest(commandData.stayActiveDuration);
431431
commandObj->AddResponse(commandPath, response);
432432
#else
433-
// Note: We only keep this line around for platforms examples that enable the ICD management server without building the sample
433+
// Note: We only keep this line around for platform examples that enable the ICD management server without building the sample
434434
// as an ICD.
435435
commandObj->AddStatus(commandPath, InteractionModel::Status::UnsupportedCommand);
436436
#endif // CHIP_CONFIG_ENABLE_ICD_SERVER

src/app/icd/server/ICDManager.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ class ICDManager : public ICDListener
110110
OperationalState GetOperationalState() { return mOperationalState; }
111111

112112
/**
113-
* @brief Extends the Active Mode duration for whichever is smallest between 30000 milliseconds and stayActiveDuration, taking
114-
* in account the remaining active time.
113+
* @brief Ensures that the remaining Active Mode duration is at least the smaller of 30000 milliseconds and stayActiveDuration.
114+
*
115115
* @param stayActiveDuration The duration (in milliseconds) requested by the client to stay in Active Mode
116116
* @return The duration (in milliseconds) the device will stay in Active Mode
117117
*/

0 commit comments

Comments
 (0)