Skip to content

Commit fad339d

Browse files
committed
Added req changes for send indicaiton
1 parent 0c11404 commit fad339d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/platform/silabs/rs911x/BLEManagerImpl.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ namespace {
247247
#define BLE_CONFIG_MAX_CE_LENGTH (0xFFFF) // Leave to max value
248248

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

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

11241124
void BLEManagerImpl::BleSendIndicationTimeoutHandler(TimerHandle_t xTimer)
11251125
{
1126-
ChipLogProgress(DeviceLayer, "BleSendIndicationTimeoutHandler::Start");
11271126
sInstance.HandleSoftTimerEvent();
11281127
}
11291128

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

0 commit comments

Comments
 (0)