Skip to content

Commit 6b07e06

Browse files
zopieuxdeadprogram
authored andcommitted
Actually stop BLE scan.
1 parent 0fb03dc commit 6b07e06

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

gap_nrf528xx-central.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,8 @@ func (a *Adapter) StopScan() error {
8787
return errNotScanning
8888
}
8989
a.scanning = false
90-
91-
// TODO: stop immediately, not when the next scan result arrives.
92-
93-
return nil
90+
errCode := C.sd_ble_gap_scan_stop()
91+
return makeError(errCode)
9492
}
9593

9694
// In-progress connection attempt.

0 commit comments

Comments
 (0)