Skip to content

Commit 90efbff

Browse files
committed
Added changes for the restyler
1 parent 04f0337 commit 90efbff

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

src/platform/silabs/BLEManagerImpl.h

+2-3
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,8 @@ class BLEManagerImpl final : public BLEManager, private BleLayer, private BlePla
203203
static void BleAdvTimeoutHandler(TimerHandle_t xTimer);
204204
uint8_t GetTimerHandle(uint8_t connectionHandle, bool allocate);
205205

206-
207-
#if (SLI_SI91X_ENABLE_BLE || RSI_BLE_ENABLE)
208-
protected:
206+
#if (SLI_SI91X_ENABLE_BLE || RSI_BLE_ENABLE)
207+
protected:
209208
static void OnSendIndicationTimeout(System::Layer * aLayer, void * appState);
210209
#endif
211210
};

src/platform/silabs/rs911x/BLEManagerImpl.cpp

+8-9
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,9 @@ void BLEManagerImpl::OnSendIndicationTimeout(System::Layer * aLayer, void * appS
311311
uint8_t connHandle = 1;
312312
ChipLogProgress(DeviceLayer, "BLEManagerImpl::HandleSoftTimerEvent CHIPOBLE_PROTOCOL_ABORT");
313313
ChipDeviceEvent event;
314-
event.Type = DeviceEventType::kCHIPoBLEConnectionError;
315-
event.CHIPoBLEConnectionError.ConId = connHandle;
316-
event.CHIPoBLEConnectionError.Reason = BLE_ERROR_CHIPOBLE_PROTOCOL_ABORT;
314+
event.Type = DeviceEventType::kCHIPoBLEConnectionError;
315+
event.CHIPoBLEConnectionError.ConId = connHandle;
316+
event.CHIPoBLEConnectionError.Reason = BLE_ERROR_CHIPOBLE_PROTOCOL_ABORT;
317317
PlatformMgr().PostEventOrDie(&event);
318318
}
319319

@@ -482,17 +482,16 @@ uint16_t BLEManagerImpl::GetMTU(BLE_CONNECTION_OBJECT conId) const
482482
return (conState != NULL) ? conState->mtu : 0;
483483
}
484484

485-
486-
487485
bool BLEManagerImpl::SendIndication(BLE_CONNECTION_OBJECT conId, const ChipBleUUID * svcId, const ChipBleUUID * charId,
488486
PacketBufferHandle data)
489487
{
490488
int32_t status = 0;
491-
status = rsi_ble_indicate_value(event_msg.resp_enh_conn.dev_addr, event_msg.rsi_ble_measurement_hndl, (data->DataLength()),
492-
data->Start());
493-
489+
status = rsi_ble_indicate_value(event_msg.resp_enh_conn.dev_addr, event_msg.rsi_ble_measurement_hndl, (data->DataLength()),
490+
data->Start());
491+
494492
// start timer for light indication confirmation. Long delay for spake2 indication
495-
DeviceLayer::SystemLayer().StartTimer(chip::System::Clock::Milliseconds32(BLE_SEND_INDICATION_TIMER_PERIOD_MS), OnSendIndicationTimeout, this);
493+
DeviceLayer::SystemLayer().StartTimer(chip::System::Clock::Milliseconds32(BLE_SEND_INDICATION_TIMER_PERIOD_MS),
494+
OnSendIndicationTimeout, this);
496495

497496
if (status != RSI_SUCCESS)
498497
{

0 commit comments

Comments
 (0)