@@ -253,7 +253,7 @@ CHIP_ERROR BLEManagerImpl::_Init()
253
253
sl_rs_ble_init_sem = osSemaphoreNew (1 , 0 , NULL );
254
254
sl_ble_event_sem = osSemaphoreNew (1 , 0 , NULL );
255
255
256
- wfx_rsi.ble_task = xTaskCreateStatic ((TaskFunction_t) sl_ble_event_handling_task, " rsi_ble" , WFX_RSI_TASK_SZ, NULL , 1 ,
256
+ wfx_rsi.ble_task = xTaskCreateStatic ((TaskFunction_t) sl_ble_event_handling_task, " rsi_ble" , WFX_RSI_TASK_SZ, NULL , 2 ,
257
257
wfxBLETaskStack, &rsiBLETaskStruct);
258
258
259
259
if (wfx_rsi.ble_task == NULL )
@@ -419,7 +419,6 @@ void BLEManagerImpl::_OnPlatformEvent(const ChipDeviceEvent * event)
419
419
420
420
case DeviceEventType::kCHIPoBLEIndicateConfirm : {
421
421
ChipLogProgress (DeviceLayer, " _OnPlatformEvent kCHIPoBLEIndicateConfirm" );
422
- DeviceLayer::SystemLayer ().CancelTimer (OnSendIndicationTimeout, this );
423
422
HandleIndicationConfirmation (event->CHIPoBLEIndicateConfirm .ConId , &CHIP_BLE_SVC_ID, &Ble::CHIP_BLE_CHAR_2_UUID);
424
423
}
425
424
break ;
@@ -924,6 +923,8 @@ void BLEManagerImpl::HandleRXCharWrite(rsi_ble_event_write_t * evt)
924
923
925
924
void BLEManagerImpl::HandleTxConfirmationEvent (BLE_CONNECTION_OBJECT conId)
926
925
{
926
+ // stop the indication confirmation timer
927
+ DeviceLayer::SystemLayer ().CancelTimer (OnSendIndicationTimeout, this );
927
928
ChipDeviceEvent event;
928
929
event.Type = DeviceEventType::kCHIPoBLEIndicateConfirm ;
929
930
event.CHIPoBLEIndicateConfirm .ConId = conId;
0 commit comments