-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ColorControl]Add Quiet reporting to the CurrentHue, CurrentSaturation, EnhancedCur… #34544
Conversation
…rentHue, CurrentX, CurrentY and RemainingTime attributes of the colorcontrol cluster server implementation
Review changes with SemanticDiff. |
PR #34544: Size comparison from 693ffba to 4f0dcc4 Increases above 0.2%:
Full report (67 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink)
|
PR #34544: Size comparison from 693ffba to b5521d2 Increases above 0.2%:
Full report (85 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
PR #34544: Size comparison from 693ffba to 5b6cd83 Increases above 0.2%:
Full report (85 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
dirtyState = quietReporter.SetValue(newValue, now, predicate); | ||
} | ||
|
||
return (dirtyState == AttributeDirtyState::kMustReport) ? MarkAttributeDirty::kIfChanged : MarkAttributeDirty::kNo; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks wrong. If kMustReport is true, you want MarkAttributeDirty::kYes, because the IfChanged value will do the wrong thing because it does not know when things were last reported.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filed #34618 to track.
// - kMarkDirtyOnIncrement : When the value increases. | ||
if (quietRemainingTime[epIndex].SetValue(newRemainingTime, now) == AttributeDirtyState::kMustReport) | ||
{ | ||
markDirty = MarkAttributeDirty::kIfChanged; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be kYes.
…n, EnhancedCur… (project-chip#34544) * WIP * Add Quiet reporting to the CurrentHue, CurrentSaturation, EnhancedCurrentHue, CurrentX, CurrentY and RemainingTime attributes of the colorcontrol cluster server implementation * Add a constructor in QuieterReporting that works with arrays * address comment
…n, EnhancedCur… (project-chip#34544) * WIP * Add Quiet reporting to the CurrentHue, CurrentSaturation, EnhancedCurrentHue, CurrentX, CurrentY and RemainingTime attributes of the colorcontrol cluster server implementation * Add a constructor in QuieterReporting that works with arrays * address comment
…rentHue, CurrentX, CurrentY and RemainingTime attributes of the color control cluster server implementation
CurrentHue, CurrentSaturation, EnhancedCurrentHue, CurrentX and CurrentY attributes are reported on at most every second, but usually 4 times throughout the transition or at transition start and end
RemainingTime is reported on value increase, or when it changes from or to 0
fixes #33863
Tests:
Existing Color control cert tests.
Manual test by subscribing to the attributes