From 2bc9796f9e10f54f4b9d45d3c3fbfe1a93e26a04 Mon Sep 17 00:00:00 2001 From: Joe Kearney Date: Sun, 8 Jun 2025 17:18:28 -0500 Subject: [PATCH] Incorporating the latest SystemK. --- 2020TPCApp1.cydsn/COMM/BLE/COMM_BLE.c | 8 ++++++++ 2020TPCApp1.cydsn/SystemK | 2 +- 2020TPCAppNoDFU.cydsn/COMM/BLE/COMM_BLE.c | 8 ++++++++ 2020TPCAppNoDFU.cydsn/SystemK | 2 +- 4 files changed, 18 insertions(+), 2 deletions(-) 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