diff --git a/2020TPCApp1.cydsn/COMM/BLE/COMM_BLE.c b/2020TPCApp1.cydsn/COMM/BLE/COMM_BLE.c index 5f9a494..bb57994 100644 --- a/2020TPCApp1.cydsn/COMM/BLE/COMM_BLE.c +++ b/2020TPCApp1.cydsn/COMM/BLE/COMM_BLE.c @@ -332,6 +332,14 @@ SystemKResult_T BLE_ScanAndAdvertise(void) return SYSTEMK_RESULT_SUCCESS; } +SystemKResult_T BLE_StopAdvertising(void) +{ + COMM_BLE_Command_T command = { .ID = COMM_BLE_STOP_ADVERTISING, .Data = (void *)0x00 }; + xQueueSend(COMM_BLE_CommandQueue, &command, 0); + + return SYSTEMK_RESULT_SUCCESS; +} + void COMM_BLE_RequestState(COMM_BLE_StateID_T state) { Next_State = state; diff --git a/2020TPCApp1.cydsn/SystemK b/2020TPCApp1.cydsn/SystemK index c11206e..bfcdf4c 160000 --- a/2020TPCApp1.cydsn/SystemK +++ b/2020TPCApp1.cydsn/SystemK @@ -1 +1 @@ -Subproject commit c11206e6255fef994c826fb446a234132571af4f +Subproject commit bfcdf4c354ae6c96165e11e2fd6d52d0c8ab91eb diff --git a/2020TPCAppNoDFU.cydsn/COMM/BLE/COMM_BLE.c b/2020TPCAppNoDFU.cydsn/COMM/BLE/COMM_BLE.c index 5f9a494..bb57994 100644 --- a/2020TPCAppNoDFU.cydsn/COMM/BLE/COMM_BLE.c +++ b/2020TPCAppNoDFU.cydsn/COMM/BLE/COMM_BLE.c @@ -332,6 +332,14 @@ SystemKResult_T BLE_ScanAndAdvertise(void) return SYSTEMK_RESULT_SUCCESS; } +SystemKResult_T BLE_StopAdvertising(void) +{ + COMM_BLE_Command_T command = { .ID = COMM_BLE_STOP_ADVERTISING, .Data = (void *)0x00 }; + xQueueSend(COMM_BLE_CommandQueue, &command, 0); + + return SYSTEMK_RESULT_SUCCESS; +} + void COMM_BLE_RequestState(COMM_BLE_StateID_T state) { Next_State = state; diff --git a/2020TPCAppNoDFU.cydsn/SystemK b/2020TPCAppNoDFU.cydsn/SystemK index c11206e..bfcdf4c 160000 --- a/2020TPCAppNoDFU.cydsn/SystemK +++ b/2020TPCAppNoDFU.cydsn/SystemK @@ -1 +1 @@ -Subproject commit c11206e6255fef994c826fb446a234132571af4f +Subproject commit bfcdf4c354ae6c96165e11e2fd6d52d0c8ab91eb