add SN Quality

This commit is contained in:
thekuwayama 2023-07-23 22:41:53 +09:00
parent 5a25904a07
commit b3224d2b40
2 changed files with 3 additions and 1 deletions

View file

@ -54,7 +54,7 @@ pub const CLUSTER: Cluster<'static> = Cluster {
Attribute::new( Attribute::new(
AttributesDiscriminants::OnOff as u16, AttributesDiscriminants::OnOff as u16,
Access::RV, Access::RV,
Quality::PERSISTENT, Quality::SN,
), ),
], ],
commands: &[ commands: &[

View file

@ -76,6 +76,8 @@ bitflags! {
const PERSISTENT = 0x02; // Short: N const PERSISTENT = 0x02; // Short: N
const FIXED = 0x04; // Short: F const FIXED = 0x04; // Short: F
const NULLABLE = 0x08; // Short: X const NULLABLE = 0x08; // Short: X
const SN = Self::SCENE.bits | Self::PERSISTENT.bits;
} }
} }