Skip to content

Commit 0c11404

Browse files
committed
Updated the timeout to support all chips
1 parent 1ada11d commit 0c11404

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/platform/silabs/rs911x/BLEManagerImpl.cpp

+1-4
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 (400)
250+
#define BLE_SEND_INDICATION_TIMER_PERIOD_MS (500) // 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.
@@ -481,9 +481,7 @@ bool BLEManagerImpl::SendIndication(BLE_CONNECTION_OBJECT conId, const ChipBleUU
481481
status = rsi_ble_indicate_value(event_msg.resp_enh_conn.dev_addr, event_msg.rsi_ble_measurement_hndl, (data->DataLength()),
482482
data->Start());
483483

484-
ChipLogProgress(DeviceLayer, "StartTimer start");
485484
StartBleSendIndicationTimeoutTimer(BLE_SEND_INDICATION_TIMER_PERIOD_MS);
486-
ChipLogProgress(DeviceLayer, "StartTimer Stop");
487485

488486
if (status != RSI_SUCCESS)
489487
{
@@ -951,7 +949,6 @@ void BLEManagerImpl::HandleSoftTimerEvent(void)
951949
event.Type = DeviceEventType::kCHIPoBLEConnectionError;
952950
event.CHIPoBLEConnectionError.ConId = connHandle;
953951
event.CHIPoBLEConnectionError.Reason = BLE_ERROR_CHIPOBLE_PROTOCOL_ABORT;
954-
ChipLogProgress(DeviceLayer, "BLEManagerImpl::HandleSoftTimerEvent CHIPOBLE_PROTOCOL_ABORT");
955952
PlatformMgr().PostEventOrDie(&event);
956953
}
957954

0 commit comments

Comments
 (0)