@@ -480,7 +480,7 @@ bool BLEManagerImpl::SendIndication(BLE_CONNECTION_OBJECT conId, const ChipBleUU
480
480
data->Start ());
481
481
482
482
// start timer for light indication confirmation. Long delay for spake2 indication
483
- DeviceLayer::SystemLayer ().StartTimer (Clock::Milliseconds32 (BLE_SEND_INDICATION_TIMER_PERIOD_MS), OnSendIndicationTimeout, this );
483
+ DeviceLayer::SystemLayer ().StartTimer (chip::System:: Clock::Milliseconds32 (BLE_SEND_INDICATION_TIMER_PERIOD_MS), OnSendIndicationTimeout, this );
484
484
485
485
if (status != RSI_SUCCESS)
486
486
{
@@ -935,18 +935,18 @@ void BLEManagerImpl::HandleTxConfirmationEvent(BLE_CONNECTION_OBJECT conId)
935
935
ChipDeviceEvent event;
936
936
event.Type = DeviceEventType::kCHIPoBLEIndicateConfirm ;
937
937
event.CHIPoBLEIndicateConfirm .ConId = conId;
938
- DeviceLayer::SystemLayer ().CancelTimer (BLEManagerImpl , this );
938
+ DeviceLayer::SystemLayer ().CancelTimer (OnSendIndicationTimeout , this );
939
939
PlatformMgr ().PostEventOrDie (&event);
940
940
}
941
941
942
942
943
943
void BLEManagerImpl::HandleSoftTimerEvent (void )
944
944
{
945
+ uint8_t connHandle = 1 ;
945
946
ChipLogProgress (DeviceLayer, " BLEManagerImpl::HandleSoftTimerEvent CHIPOBLE_PROTOCOL_ABORT" );
946
947
ChipDeviceEvent event;
947
948
event.Type = DeviceEventType::kCHIPoBLEConnectionError ;
948
- event.CHIPoBLEConnectionError .ConId = mIndConfId [evt->data .evt_system_soft_timer .handle ];
949
- sInstance .mIndConfId [evt->data .evt_system_soft_timer .handle ] = kUnusedIndex ;
949
+ event.CHIPoBLEConnectionError .ConId = connHandle;
950
950
event.CHIPoBLEConnectionError .Reason = BLE_ERROR_CHIPOBLE_PROTOCOL_ABORT;
951
951
PlatformMgr ().PostEventOrDie (&event);
952
952
}
0 commit comments