@@ -3113,15 +3113,15 @@ void ColorControlServer::levelControlColorTempChangeCommand(EndpointId endpoint)
3113
3113
* - When it changes from null to any other value and vice versa. (Implicit to the QuieterReportingAttribute class)
3114
3114
*
3115
3115
* The QuietReportAttribute class is updated with the new value and when the report conditions are met,
3116
- * this function will return MarkAttributeDirty::kIfChanged .
3116
+ * this function will return MarkAttributeDirty::kYes .
3117
3117
* It is expected that the user will use this return value to trigger a reporting mechanism for the attribute with the new value
3118
3118
* (Which was updated in the quietReporter)
3119
3119
*
3120
3120
* @param quietReporter: The QuieterReportingAttribute<TYPE> object for the attribute to update.
3121
3121
* @param newValue: Value to update the attribute with
3122
3122
* @param isStartOrEndOfTransition: Boolean that indicatse whether the update is occurring at the start or end of a level transition
3123
- * @return MarkAttributeDirty::kIfChanged when the attribute must be maredk dirty and be reported. MarkAttributeDirty::kNo when it
3124
- * when it no report is needed.
3123
+ * @return MarkAttributeDirty::kYes when the attribute must be marked dirty and be reported. MarkAttributeDirty::kNo when
3124
+ * no report is needed.
3125
3125
*/
3126
3126
template <typename Q, typename V>
3127
3127
MarkAttributeDirty ColorControlServer::SetQuietReportAttribute (QuieterReportingAttribute<Q> & quietReporter, V newValue,
@@ -3132,7 +3132,7 @@ MarkAttributeDirty ColorControlServer::SetQuietReportAttribute(QuieterReportingA
3132
3132
3133
3133
if (isStartOrEndOfTransition)
3134
3134
{
3135
- // At the start or end of the movement/transition we must report
3135
+ // At the start or end of the movement/transition we must report if the value changed
3136
3136
auto predicate = [](const typename QuieterReportingAttribute<Q>::SufficientChangePredicateCandidate &) -> bool {
3137
3137
return true ;
3138
3138
};
@@ -3155,7 +3155,7 @@ MarkAttributeDirty ColorControlServer::SetQuietReportAttribute(QuieterReportingA
3155
3155
dirtyState = quietReporter.SetValue (newValue, now, predicate);
3156
3156
}
3157
3157
3158
- return (dirtyState == AttributeDirtyState::kMustReport ) ? MarkAttributeDirty::kIfChanged : MarkAttributeDirty::kNo ;
3158
+ return (dirtyState == AttributeDirtyState::kMustReport ) ? MarkAttributeDirty::kYes : MarkAttributeDirty::kNo ;
3159
3159
}
3160
3160
3161
3161
/*
@@ -3180,7 +3180,7 @@ Status ColorControlServer::SetQuietReportRemainingTime(EndpointId endpoint, uint
3180
3180
// - kMarkDirtyOnIncrement : When the value increases.
3181
3181
if (quietRemainingTime[epIndex].SetValue (newRemainingTime, now) == AttributeDirtyState::kMustReport )
3182
3182
{
3183
- markDirty = MarkAttributeDirty::kIfChanged ;
3183
+ markDirty = MarkAttributeDirty::kYes ;
3184
3184
}
3185
3185
3186
3186
return Attributes::RemainingTime::Set (endpoint, quietRemainingTime[epIndex].value ().Value (), markDirty);
0 commit comments