Skip to content

Commit 2d5a1be

Browse files
committed
Stating the timer after success of send indication
1 parent 51d1cc2 commit 2d5a1be

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/platform/silabs/rs911x/BLEManagerImpl.cpp

+3-4
Original file line numberDiff line numberDiff line change
@@ -490,16 +490,15 @@ bool BLEManagerImpl::SendIndication(BLE_CONNECTION_OBJECT conId, const ChipBleUU
490490
status = rsi_ble_indicate_value(event_msg.resp_enh_conn.dev_addr, event_msg.rsi_ble_measurement_hndl, (data->DataLength()),
491491
data->Start());
492492

493-
// start timer for the indication Confirmation Event
494-
DeviceLayer::SystemLayer().StartTimer(chip::System::Clock::Milliseconds32(BLE_SEND_INDICATION_TIMER_PERIOD_MS),
495-
OnSendIndicationTimeout, this);
496-
497493
if (status != RSI_SUCCESS)
498494
{
499495
ChipLogProgress(DeviceLayer, "indication failed with error code %lx ", status);
500496
return false;
501497
}
502498

499+
// start timer for the indication Confirmation Event
500+
DeviceLayer::SystemLayer().StartTimer(chip::System::Clock::Milliseconds32(BLE_SEND_INDICATION_TIMER_PERIOD_MS),
501+
OnSendIndicationTimeout, this);
503502
return true;
504503
}
505504

0 commit comments

Comments
 (0)