1

Fork of nRF51822 by Nordic Semiconductor

Revision:
168:a24112aa18a1
Parent:
166:fa0e88cac390
Child:
169:93cc9241d748
--- a/nRF51Gap.h	Wed May 13 08:49:34 2015 +0100
+++ b/nRF51Gap.h	Wed May 13 08:49:35 2015 +0100
@@ -97,6 +97,14 @@
         return BLE_ERROR_NONE;
     }
 
+    virtual ble_error_t stopScanning(void) {
+        if (sd_ble_gap_scan_stop() == NRF_SUCCESS) {
+            return BLE_ERROR_NONE;
+        }
+
+        return BLE_STACK_BUSY;
+    }
+
 private:
     uint16_t m_connectionHandle;
     nRF51Gap() {