Skip to content

Commit

Permalink
Added req changes for send indicaiton
Browse files Browse the repository at this point in the history
  • Loading branch information
shgutte committed Feb 5, 2024
1 parent 0c11404 commit fad339d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/platform/silabs/rs911x/BLEManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ namespace {
#define BLE_CONFIG_MAX_CE_LENGTH (0xFFFF) // Leave to max value

#define BLE_DEFAULT_TIMER_PERIOD_MS (1)
#define BLE_SEND_INDICATION_TIMER_PERIOD_MS (500) // Time kept to support all WiFi chips BLE (RS9116/ SiWx917 NCP/SOC)
#define BLE_SEND_INDICATION_TIMER_PERIOD_MS (400) // Time kept to support all WiFi chips BLE (RS9116/ SiWx917 NCP/SOC)

TimerHandle_t sbleAdvTimeoutTimer; // FreeRTOS sw timer.
TimerHandle_t sbleSendIndicationTimeoutTimer; // FreeRTOS sw timer.
Expand Down Expand Up @@ -1123,7 +1123,6 @@ void BLEManagerImpl::StartBleAdvTimeoutTimer(uint32_t aTimeoutInMs)

void BLEManagerImpl::BleSendIndicationTimeoutHandler(TimerHandle_t xTimer)
{
ChipLogProgress(DeviceLayer, "BleSendIndicationTimeoutHandler::Start");
sInstance.HandleSoftTimerEvent();
}

Expand All @@ -1145,7 +1144,7 @@ void BLEManagerImpl::StartBleSendIndicationTimeoutTimer(uint32_t aTimeoutInMs)
// timer is not active, change its period to required value (== restart).
// FreeRTOS- Block for a maximum of 100 ticks if the change period command
// cannot immediately be sent to the timer command queue.
if (xTimerChangePeriod(sbleSendIndicationTimeoutTimer, pdMS_TO_TICKS(aTimeoutInMs), pdMS_TO_TICKS(100)) != pdPASS)
if (xTimerChangePeriod(sbleSendIndicationTimeoutTimer, pdMS_TO_TICKS(aTimeoutInMs), pdMS_TO_TICKS(BLE_CONFIG_TIMEOUT)) != pdPASS)
{
ChipLogError(DeviceLayer, "Failed to start BledAdv timeout timer");
}
Expand Down

0 comments on commit fad339d

Please sign in to comment.