Skip to content

Commit 2c59d43

Browse files
[SL_TEMP] Compilation errors fixed: Unused variables. (#1265)
1 parent fec4f54 commit 2c59d43

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎examples/platform/silabs/BaseApplication.cpp‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,9 @@ bool sHaveBLEConnections = false;
175175

176176
constexpr uint32_t kLightTimerPeriod = static_cast<uint32_t>(pdMS_TO_TICKS(10));
177177

178+
#if SL_MATTER_ZIGBEE_SEQUENTIAL
178179
constexpr System::Clock::Milliseconds32 kZbLeaveAnnouceDelay = System::Clock::Milliseconds32(1000);
180+
#endif
179181

180182
uint8_t sAppEventQueueBuffer[APP_EVENT_QUEUE_SIZE * sizeof(AppEvent)];
181183
osMessageQueue_t sAppEventQueueStruct;
@@ -205,7 +207,7 @@ ObjectPool<Identify, MATTER_DM_IDENTIFY_CLUSTER_SERVER_ENDPOINT_COUNT + CHIP_DEV
205207

206208
int sCodeDrivenIdentifyActiveCount = 0;
207209
Clusters::Identify::EffectIdentifierEnum sCodeDrivenIdentifyEffect = Clusters::Identify::EffectIdentifierEnum::kStopEffect;
208-
Clusters::Identify::EffectVariantEnum sCodeDrivenIdentifyVariant = Clusters::Identify::EffectVariantEnum::kDefault;
210+
[[maybe_unused]] Clusters::Identify::EffectVariantEnum sCodeDrivenIdentifyVariant = Clusters::Identify::EffectVariantEnum::kDefault;
209211

210212
// Protects the three sCodeDrivenIdentify* variables above.
211213
osSemaphoreId_t sCodeDrivenIdentifyLock = nullptr;

‎src/platform/silabs/BLEManagerImpl.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,9 @@ class BLEManagerImpl final : public BLEManager, private BleLayer, private BlePla
252252
PacketBufferHandle c3AdditionalDataBufferHandle;
253253
#endif
254254

255-
#if !(defined(SLI_SI91X_ENABLE_BLE) && SLI_SI91X_ENABLE_BLE)
255+
#if defined(SL_BLE_SIDE_CHANNEL_ENABLED) && SL_BLE_SIDE_CHANNEL_ENABLED
256256
BLEChannel * mBleSideChannel = nullptr;
257-
#endif // !(defined(SLI_SI91X_ENABLE_BLE) && SLI_SI91X_ENABLE_BLE)
257+
#endif
258258

259259
CHIP_ERROR MapBLEError(int bleErr);
260260
void DriveBLEState(void);

0 commit comments

Comments
 (0)