Skip to content

Commit 9364235

Browse files
committed
Merged upstream
1 parent 5499e6c commit 9364235

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

matter/src/core.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ impl Matter {
6161
let mdns = Mdns::get()?;
6262
mdns.set_values(dev_det.vid, dev_det.pid, &dev_det.device_name);
6363

64-
print_pairing_code_and_qr(dev_det, &dev_comm, DiscoveryCapabilities::default());
64+
print_pairing_code_and_qr(&dev_det, &dev_comm, DiscoveryCapabilities::default());
6565

6666
let fabric_mgr = Arc::new(FabricMgr::new()?);
6767
let acl_mgr = Arc::new(AclMgr::new()?);

matter/src/data_model/cluster_basic_information.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ pub struct BasicInfoConfig {
3838
pub hw_ver: u16,
3939
pub sw_ver: u32,
4040
pub serial_no: String,
41+
/// Device name; up to 32 characters
42+
pub device_name: String,
4143
}
4244

4345
fn attr_dm_rev_new() -> Result<Attribute, Error> {
@@ -47,8 +49,6 @@ fn attr_dm_rev_new() -> Result<Attribute, Error> {
4749
Access::RV,
4850
Quality::FIXED,
4951
)
50-
/// Device name; up to 32 characters
51-
pub device_name: String,
5252
}
5353

5454
fn attr_vid_new(vid: u16) -> Result<Attribute, Error> {

matter/tests/common/im_engine.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,7 @@ impl ImEngine {
107107
// Only allow the standard peer node id of the IM Engine
108108
default_acl.add_subject(IM_ENGINE_PEER_ID).unwrap();
109109
acl_mgr.add(default_acl).unwrap();
110-
let dm = DataModel::new(
111-
dev_det,
112-
dev_att,
113-
fabric_mgr.clone(),
114-
acl_mgr.clone(),
115-
pase_mgr,
116-
)
117-
.unwrap();
110+
let dm = DataModel::new(dev_det, dev_att, fabric_mgr, acl_mgr.clone(), pase_mgr).unwrap();
118111

119112
{
120113
let mut d = dm.node.write().unwrap();

0 commit comments

Comments
 (0)