From 23f4f456c4113b682c6a1d4e360c94490f3a4868 Mon Sep 17 00:00:00 2001 From: Alexandre Macabies Date: Thu, 27 Nov 2025 22:11:25 +0100 Subject: [PATCH] Actually stop BLE scan. --- gap_nrf528xx-central.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gap_nrf528xx-central.go b/gap_nrf528xx-central.go index a0c8db78..2ae2c81a 100644 --- a/gap_nrf528xx-central.go +++ b/gap_nrf528xx-central.go @@ -87,10 +87,8 @@ func (a *Adapter) StopScan() error { return errNotScanning } a.scanning = false - - // TODO: stop immediately, not when the next scan result arrives. - - return nil + errCode := C.sd_ble_gap_scan_stop() + return makeError(errCode) } // In-progress connection attempt.