Skip to content

Commit

Permalink
Added changes for the BLE error issue for SOC
Browse files Browse the repository at this point in the history
  • Loading branch information
shgutte committed Jan 18, 2024
1 parent 81b4902 commit 10e386a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/platform/silabs/rs911x/BLEManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,16 +242,16 @@ namespace {
#define BLE_CONFIG_MIN_INTERVAL (16) // Time = Value x 1.25 ms = 30ms
#define BLE_CONFIG_MAX_INTERVAL (80) // Time = Value x 1.25 ms = 100ms
#define BLE_CONFIG_LATENCY (0)
#define BLE_CONFIG_TIMEOUT (100) // Time = Value x 10 ms = 1s
#define BLE_CONFIG_MIN_CE_LENGTH (0) // Leave to min value
#define BLE_CONFIG_TIMEOUT (100) // Time = Value x 10 ms = 1s
#define BLE_CONFIG_MIN_CE_LENGTH (0) // Leave to min value
#define BLE_CONFIG_MAX_CE_LENGTH (0xFFFF) // Leave to max value

#define BLE_DEFAULT_TIMER_PERIOD_MS (1)

TimerHandle_t sbleAdvTimeoutTimer; // FreeRTOS sw timer.

const uint8_t UUID_CHIPoBLEService[] = { 0xFB, 0x34, 0x9B, 0x5F, 0x80, 0x00, 0x00, 0x80,
0x00, 0x10, 0x00, 0x00, 0xF6, 0xFF, 0x00, 0x00 };
0x00, 0x10, 0x00, 0x00, 0xF6, 0xFF, 0x00, 0x00 };
const uint8_t ShortUUID_CHIPoBLEService[] = { 0xF6, 0xFF };
const ChipBleUUID ChipUUID_CHIPoBLEChar_RX = { { 0x18, 0xEE, 0x2E, 0xF5, 0x26, 0x3D, 0x45, 0x59, 0x95, 0x9F, 0x4F, 0x9C, 0x42, 0x9F,
0x9D, 0x11 } };
Expand Down Expand Up @@ -656,7 +656,7 @@ CHIP_ERROR BLEManagerImpl::ConfigureAdvertisingData(void)

CHIP_ERROR BLEManagerImpl::StartAdvertising(void)
{
CHIP_ERROR err;
CHIP_ERROR err = CHIP_NO_ERROR;
int32_t status = 0;

ChipLogProgress(DeviceLayer, "StartAdvertising start");
Expand All @@ -677,8 +677,8 @@ CHIP_ERROR BLEManagerImpl::StartAdvertising(void)

if (!(mFlags.Has(Flags::kAdvertising)))
{
err = ConfigureAdvertisingData();
SuccessOrExit(err);
err = ConfigureAdvertisingData();
SuccessOrExit(err);
}

mFlags.Clear(Flags::kRestartAdvertising);
Expand Down

0 comments on commit 10e386a

Please sign in to comment.