Skip to content

Commit 303bb08

Browse files
committed
Added changes for the build error for the TX timer fix
1 parent 3b0a52d commit 303bb08

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/platform/silabs/rs911x/BLEManagerImpl.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ bool BLEManagerImpl::SendIndication(BLE_CONNECTION_OBJECT conId, const ChipBleUU
480480
data->Start());
481481

482482
// 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);
484484

485485
if (status != RSI_SUCCESS)
486486
{
@@ -935,18 +935,18 @@ void BLEManagerImpl::HandleTxConfirmationEvent(BLE_CONNECTION_OBJECT conId)
935935
ChipDeviceEvent event;
936936
event.Type = DeviceEventType::kCHIPoBLEIndicateConfirm;
937937
event.CHIPoBLEIndicateConfirm.ConId = conId;
938-
DeviceLayer::SystemLayer().CancelTimer(BLEManagerImpl, this);
938+
DeviceLayer::SystemLayer().CancelTimer(OnSendIndicationTimeout, this);
939939
PlatformMgr().PostEventOrDie(&event);
940940
}
941941

942942

943943
void BLEManagerImpl::HandleSoftTimerEvent(void)
944944
{
945+
uint8_t connHandle = 1;
945946
ChipLogProgress(DeviceLayer, "BLEManagerImpl::HandleSoftTimerEvent CHIPOBLE_PROTOCOL_ABORT");
946947
ChipDeviceEvent event;
947948
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;
950950
event.CHIPoBLEConnectionError.Reason = BLE_ERROR_CHIPOBLE_PROTOCOL_ABORT;
951951
PlatformMgr().PostEventOrDie(&event);
952952
}

0 commit comments

Comments
 (0)