Added BLE_StopScanning().
This commit is contained in:
parent
7a677c06ba
commit
b537d226ec
2 changed files with 18 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 2efb4f5183acd313f28f6a8f20b041053a47c2e1
|
||||
Subproject commit fb1a4ab07b990fef8f957ef7c5f806649e126d0f
|
Loading…
Add table
Add a link
Reference in a new issue