Commit 85318f1
committed
level_control: bump TestLevelControlDeviceLogic cluster revision to 6
`LevelControlHandler::validate()` panics unless `H::CLUSTER.revision`
is 6, and the Matter 1.5.1 IDL declares LevelControl at revision 6.
The in-tree `TestLevelControlDeviceLogic` still declared revision 5,
so any caller (including `examples/src/bin/speaker.rs`) that exercised
`init()` panicked at startup with "incorrect version number: expected
6 got 5". The sibling `TestOnOffDeviceLogic` already tracks revision
6; this brings LevelControl in line.
Also adds a small regression test that constructs the
LevelControl + OnOff handler pair the same way `speaker.rs` does, so
future drift between `TestLevelControlDeviceLogic::CLUSTER` and what
`LevelControlHandler::validate()` requires is caught at CI time
rather than at first runtime use.1 parent 7d96427 commit 85318f1
1 file changed
Lines changed: 27 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1775 | 1775 | | |
1776 | 1776 | | |
1777 | 1777 | | |
1778 | | - | |
| 1778 | + | |
1779 | 1779 | | |
1780 | 1780 | | |
1781 | 1781 | | |
| |||
1827 | 1827 | | |
1828 | 1828 | | |
1829 | 1829 | | |
| 1830 | + | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
0 commit comments