diff --git a/components/BLE/BLE.c b/components/BLE/BLE.c index a729f96..90e7c06 100644 --- a/components/BLE/BLE.c +++ b/components/BLE/BLE.c @@ -280,6 +280,23 @@ SystemKResult_T BLE_ScanAndAdvertise(void) return result; } +SystemKResult_T BLE_StopScanning(void) +{ + SystemKResult_T result = SYSTEMK_RESULT_NOT_READY; + + if (Host_And_Controller_Synced == true) + { + if (Is_Scanning == true) + { + ble_gap_disc_cancel(); + Is_Scanning = false; + } + result = SYSTEMK_RESULT_SUCCESS; + } + + return result; +} + SystemKResult_T BLE_StopAdvertising(void) { SystemKResult_T result = SYSTEMK_RESULT_NOT_READY; diff --git a/components/SystemK b/components/SystemK index 2efb4f5..fb1a4ab 160000 --- a/components/SystemK +++ b/components/SystemK @@ -1 +1 @@ -Subproject commit 2efb4f5183acd313f28f6a8f20b041053a47c2e1 +Subproject commit fb1a4ab07b990fef8f957ef7c5f806649e126d0f