Skip to content

Commit 8b73cbd

Browse files
authored
Merge pull request project-chip#95 from ssnover/fix-armfailsafe-command-arg-types
Update the types of the arguments for General Commissioning cluster's ArmFailSafe command to match spec
2 parents 320d1ec + c74c46d commit 8b73cbd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

rs-matter/src/data_model/sdm/failsafe.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ enum NocState {
3434
#[derive(PartialEq)]
3535
pub struct ArmedCtx {
3636
session_mode: SessionMode,
37-
timeout: u8,
37+
timeout: u16,
3838
noc_state: NocState,
3939
}
4040

@@ -54,7 +54,7 @@ impl FailSafe {
5454
Self { state: State::Idle }
5555
}
5656

57-
pub fn arm(&mut self, timeout: u8, session_mode: SessionMode) -> Result<(), Error> {
57+
pub fn arm(&mut self, timeout: u16, session_mode: SessionMode) -> Result<(), Error> {
5858
match &mut self.state {
5959
State::Idle => {
6060
self.state = State::Armed(ArmedCtx {

rs-matter/src/data_model/sdm/general_commissioning.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ pub const CLUSTER: Cluster<'static> = Cluster {
117117

118118
#[derive(FromTLV, ToTLV)]
119119
struct FailSafeParams {
120-
expiry_len: u8,
121-
bread_crumb: u8,
120+
expiry_len: u16,
121+
bread_crumb: u64,
122122
}
123123

124124
#[derive(ToTLV)]

0 commit comments

Comments
 (0)