Skip to content

Commit

Permalink
Merge pull request #67 from embassy-rs/non-ref-params
Browse files Browse the repository at this point in the history
use owned advertising params
  • Loading branch information
lulf authored Jul 2, 2024
2 parents 932d418 + edd2529 commit 421f937
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/nrf-sdc/src/bin/ble_advertise_multiple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ async fn main(spawner: Spawner) {
let sets = [
AdvertisementSet {
handle: 0,
params: &AdvertisementParameters {
params: AdvertisementParameters {
tx_power: TxPower::Plus8dBm,
primary_phy: PhyKind::Le1M,
secondary_phy: PhyKind::Le1M,
Expand All @@ -140,7 +140,7 @@ async fn main(spawner: Spawner) {
},
AdvertisementSet {
handle: 1,
params: &AdvertisementParameters {
params: AdvertisementParameters {
tx_power: TxPower::Plus8dBm,
primary_phy: PhyKind::LeCoded,
secondary_phy: PhyKind::LeCoded,
Expand Down
2 changes: 1 addition & 1 deletion host/src/advertise.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub enum TxPower {
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub struct AdvertisementSet<'d> {
pub handle: u8,
pub params: &'d AdvertisementParameters,
pub params: AdvertisementParameters,
pub data: Advertisement<'d>,
}

Expand Down

0 comments on commit 421f937

Please sign in to comment.