Skip to content

Commit

Permalink
Updated the timer timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
shgutte committed Feb 2, 2024
1 parent 2950473 commit 1ada11d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 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 (10)
#define BLE_SEND_INDICATION_TIMER_PERIOD_MS (400)

TimerHandle_t sbleAdvTimeoutTimer; // FreeRTOS sw timer.
TimerHandle_t sbleSendIndicationTimeoutTimer; // FreeRTOS sw timer.
Expand Down Expand Up @@ -951,6 +951,7 @@ void BLEManagerImpl::HandleSoftTimerEvent(void)
event.Type = DeviceEventType::kCHIPoBLEConnectionError;
event.CHIPoBLEConnectionError.ConId = connHandle;
event.CHIPoBLEConnectionError.Reason = BLE_ERROR_CHIPOBLE_PROTOCOL_ABORT;
ChipLogProgress(DeviceLayer, "BLEManagerImpl::HandleSoftTimerEvent CHIPOBLE_PROTOCOL_ABORT");
PlatformMgr().PostEventOrDie(&event);
}

Expand Down Expand Up @@ -1125,6 +1126,7 @@ void BLEManagerImpl::StartBleAdvTimeoutTimer(uint32_t aTimeoutInMs)

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

Expand Down

0 comments on commit 1ada11d

Please sign in to comment.