Skip to content

Commit 31b857d

Browse files
committed
level_control: bump expected cluster revision 6 -> 7
Matter 1.5.1 §1.6 lists the LevelControl cluster at revision 7. Upstream project-chip#453 bumped the local `validate()` check and the `TestLevelControlDeviceLogic` reference impl from 5 to 6, but the spec value is one higher. Bring both to 7 so device-side `validate()` accepts spec-conformant cluster definitions.
1 parent dfab2cd commit 31b857d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

rs-matter/src/dm/clusters/app/level_control.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,9 @@ impl<'a, H: LevelControlHooks, OH: OnOffHooks> LevelControlHandler<'a, H, OH> {
287287
///
288288
/// panics with error message if the `state`'s `CLUSTER` is misconfigured.
289289
fn validate(&self) {
290-
if H::CLUSTER.revision != 6 {
290+
if H::CLUSTER.revision != 7 {
291291
panic!(
292-
"LevelControl validation: incorrect version number: expected 6 got {}",
292+
"LevelControl validation: incorrect version number: expected 7 got {}",
293293
H::CLUSTER.revision
294294
);
295295
}
@@ -1849,7 +1849,7 @@ pub mod test {
18491849
const MAX_LEVEL: u8 = 254;
18501850
const FASTEST_RATE: u8 = 50;
18511851
const CLUSTER: Cluster<'static> = FULL_CLUSTER
1852-
.with_revision(6)
1852+
.with_revision(7)
18531853
.with_features(Feature::ON_OFF.bits())
18541854
.with_attrs(with!(
18551855
required;

0 commit comments

Comments
 (0)