summaryrefslogtreecommitdiff
path: root/examples/src/bin/ble_scan.rs
diff options
context:
space:
mode:
authorDario Nieuwenhuis <dirbaio@dirbaio.net>2020-12-03 20:42:43 +0100
committerDario Nieuwenhuis <dirbaio@dirbaio.net>2020-12-03 20:42:43 +0100
commit1fd0b6290fe23dee4988e370926d6cc00765fdb7 (patch)
tree8d0f77f39a58770eeb43fe0e5c0173f8d7904674 /examples/src/bin/ble_scan.rs
parent61176d7022433a1da60e66026d165cd1ebe2276a (diff)
downloadnrf-softdevice-1fd0b6290fe23dee4988e370926d6cc00765fdb7.zip
Take configs by ref.
Diffstat (limited to 'examples/src/bin/ble_scan.rs')
-rw-r--r--examples/src/bin/ble_scan.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/src/bin/ble_scan.rs b/examples/src/bin/ble_scan.rs
index 4e54978..46c61a3 100644
--- a/examples/src/bin/ble_scan.rs
+++ b/examples/src/bin/ble_scan.rs
@@ -28,7 +28,7 @@ async fn softdevice_task(sd: &'static Softdevice) {
#[task]
async fn ble_task(sd: &'static Softdevice) {
let config = central::ScanConfig { whitelist: None };
- let res = central::scan(sd, config, |params| unsafe {
+ let res = central::scan(sd, &config, |params| unsafe {
info!("AdvReport!");
info!(
"type: connectable={:u16} scannable={:u16} directed={:u16} scan_response={:u16} extended_pdu={:u16} status={:u16}",