We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1fccb18 + b3224d2 commit 13c2504Copy full SHA for 13c2504
rs-matter/src/data_model/cluster_on_off.rs
@@ -54,7 +54,7 @@ pub const CLUSTER: Cluster<'static> = Cluster {
54
Attribute::new(
55
AttributesDiscriminants::OnOff as u16,
56
Access::RV,
57
- Quality::PERSISTENT,
+ Quality::SN,
58
),
59
],
60
commands: &[
rs-matter/src/data_model/objects/attribute.rs
@@ -73,10 +73,12 @@ bitflags! {
73
#[derive(Default)]
74
pub struct Quality: u8 {
75
const NONE = 0x00;
76
- const SCENE = 0x01;
77
- const PERSISTENT = 0x02;
78
- const FIXED = 0x03;
79
- const NULLABLE = 0x04;
+ const SCENE = 0x01; // Short: S
+ const PERSISTENT = 0x02; // Short: N
+ const FIXED = 0x04; // Short: F
+ const NULLABLE = 0x08; // Short: X
80
+
81
+ const SN = Self::SCENE.bits | Self::PERSISTENT.bits;
82
}
83
84
0 commit comments