summaryrefslogtreecommitdiff
path: root/examples/src/bin/ble_l2cap_central.rs
diff options
context:
space:
mode:
authorDario Nieuwenhuis <dirbaio@dirbaio.net>2020-12-04 16:17:01 +0100
committerDario Nieuwenhuis <dirbaio@dirbaio.net>2020-12-04 16:17:01 +0100
commit0867b0d36912a7ddadffe818b838cca6398fccdd (patch)
treebfb97c39f78b317a24f68531b23b6889c33c5b21 /examples/src/bin/ble_l2cap_central.rs
parent18312e0473979592e21c621c853cfbd8b29f7a2d (diff)
downloadnrf-softdevice-0867b0d36912a7ddadffe818b838cca6398fccdd.zip
More rusty Address type
Diffstat (limited to 'examples/src/bin/ble_l2cap_central.rs')
-rw-r--r--examples/src/bin/ble_l2cap_central.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/src/bin/ble_l2cap_central.rs b/examples/src/bin/ble_l2cap_central.rs
index 24e5565..5c1b856 100644
--- a/examples/src/bin/ble_l2cap_central.rs
+++ b/examples/src/bin/ble_l2cap_central.rs
@@ -57,7 +57,7 @@ async fn ble_central_task(sd: &'static Softdevice) {
0x18, 0xce, 0x9c, 0x82,
]
{
- return Some(Address::new_random_static(params.peer_addr.addr));
+ return Some(Address::from_raw(params.peer_addr));
}
data = &data[len + 1..];
}