Clone of the nRF51822 repository from github The correct home is https://github.com/lancaster-university/nRF51822

Dependencies:   nrf51-sdk

Dependents:   microbit-dal microbit-ble-open microbit-dal-eddystone microbit-dal-ble-accelerometer-example ... more

Revision:
605:07229eef5014
Parent:
604:0f5c8725146c
Child:
611:0e75292ed2bd
--- a/source/nRF5xGap.cpp	Mon Jan 11 10:19:38 2016 +0000
+++ b/source/nRF5xGap.cpp	Mon Jan 11 10:19:38 2016 +0000
@@ -440,6 +440,13 @@
     /* Clear derived class members */
     m_connectionHandle = BLE_CONN_HANDLE_INVALID;
 
+    /* Set the whitelist policy filter modes to IGNORE_WHITELIST */
+    advertisingPolicyMode = Gap::ADV_POLICY_IGNORE_WHITELIST;
+    scanningPolicyMode    = Gap::SCAN_POLICY_IGNORE_WHITELIST;
+
+    /* Clear the internal whitelist */
+    whitelistAddressesSize = 0;
+
     return BLE_ERROR_NONE;
 }