Skip to content

Commit

Permalink
Fix the edge-mdns feature
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed Nov 28, 2024
1 parent d8da29e commit e0a9171
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ readme = "README.md"
rust-version = "1.77"

[patch.crates-io]
rs-matter = { git = "https://github.com/ivmarkov/rs-matter" }
#rs-matter = { path = "../rs-matter/rs-matter" }
rs-matter = { git = "https://github.com/project-chip/rs-matter" }
#edge-nal = { git = "https://github.com/ivmarkov/edge-net" }
#edge-nal = { path = "../edge-net/edge-nal" }
#edge-nal-std = { git = "https://github.com/ivmarkov/edge-net" }
#edge-nal-std = { path = "../edge-net/edge-nal-std" }
#edge-mdns = { git = "https://github.com/ivmarkov/edge-net" }
#rs-matter = { path = "../rs-matter/rs-matter" }
#edge-nal = { path = "../edge-net/edge-nal" }
#edge-nal-std = { path = "../edge-net/edge-nal-std" }
#edge-mdns = { path = "../edge-net/edge-mdns" }

[features]
Expand Down
14 changes: 7 additions & 7 deletions src/mdns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ use embassy_sync::signal::Signal;
use rs_matter::data_model::cluster_basic_information::BasicInfoConfig;
use rs_matter::error::{Error, ErrorCode};
use rs_matter::mdns::{Mdns, ServiceMode};
use rs_matter::utils::blmutex::Mutex;
use rs_matter::utils::buf::BufferAccess;
use rs_matter::utils::cell::RefCell;
use rs_matter::utils::init::{init, Init};
use rs_matter::utils::refcell::RefCell;
use rs_matter::utils::storage::pooled::BufferAccess;
use rs_matter::utils::sync::blocking::Mutex;

const MAX_MATTER_SERVICES: usize = 4;
const MAX_MATTER_SERVICE_NAME_LEN: usize = 40;
Expand Down Expand Up @@ -71,7 +71,7 @@ where
services: Mutex<
M,
RefCell<
rs_matter::utils::vec::Vec<
rs_matter::utils::storage::Vec<
(heapless::String<MAX_MATTER_SERVICE_NAME_LEN>, ServiceMode),
MAX_MATTER_SERVICES,
>,
Expand All @@ -90,7 +90,7 @@ where
Self {
dev_det,
matter_port,
services: Mutex::new(RefCell::new(rs_matter::utils::vec::Vec::new())),
services: Mutex::new(RefCell::new(rs_matter::utils::storage::Vec::new())),
broadcast_signal: Signal::new(),
}
}
Expand All @@ -100,7 +100,7 @@ where
init!(Self {
dev_det,
matter_port,
services <- Mutex::init(RefCell::init(rs_matter::utils::vec::Vec::init())),
services <- Mutex::init(RefCell::init(rs_matter::utils::storage::Vec::init())),
broadcast_signal: Signal::new(),
})
}
Expand Down Expand Up @@ -179,7 +179,7 @@ where
}
}

impl<'a, M> Mdns for MatterServices<'a, M>
impl<M> Mdns for MatterServices<'_, M>
where
M: RawMutex,
{
Expand Down

0 comments on commit e0a9171

Please sign in to comment.