From 6a3f12819c7b26f73cbf471e28c93ba610040ed4 Mon Sep 17 00:00:00 2001 From: Joe Kearney Date: Sat, 16 Aug 2025 14:49:11 -0500 Subject: [PATCH] Fixed the Hello packet hack needed for PSoC6. --- States/State_Configuring.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/States/State_Configuring.c b/States/State_Configuring.c index ce186a6..71b0eaf 100644 --- a/States/State_Configuring.c +++ b/States/State_Configuring.c @@ -106,23 +106,6 @@ static void Configuring_Do(StateMachineContext_T *context) { portBASE_TYPE xStatus; static KEvent_T Event; - - // Update the Hello packet every 250ms for the first second, since on some platforms (PSoC6), the BLE is not initialized before - // the `Configuring_Do` gets going. - // TODO: Fix the Hello packet hack needed for PSoC6. Maybe we need a `BLE_Initialized` event? - { - TickType_t now = xTaskGetTickCount(); - if ((now - context->Time_At_State_Entry_In_Ticks) < (1000 / portTICK_PERIOD_MS)) - { - static TickType_t Time_At_Last_Hello_Update = 0; - - if ((now - Time_At_Last_Hello_Update) > (250 / portTICK_PERIOD_MS)) - { - BLE_UpdateHelloPacket(); - Time_At_Last_Hello_Update = now; - } - } - } xStatus = Receive_KEvent(&Event);