Skip to content

Commit 364ccb8

Browse files
ci(pre-commit): Apply automatic fixes
1 parent 7ca27fd commit 364ccb8

File tree

5 files changed

+22
-25
lines changed

5 files changed

+22
-25
lines changed

libraries/Matter/examples/MatterStatus/MatterStatus.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,4 @@ void loop() {
116116
Serial.printf("Device Commissioned: %s\r\n", Matter.isDeviceCommissioned() ? "YES" : "NO");
117117
Serial.println();
118118
delay(10000);
119-
}
119+
}

libraries/Matter/examples/MatterStatus/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,15 +164,15 @@ Use a Matter-compatible hub (like an Apple HomePod, Google Nest Hub, or Amazon E
164164

165165
## Code Structure
166166

167-
- **`setup()`**:
167+
- **`setup()`**:
168168
- Initializes hardware (LED)
169169
- Reports enabled features using capability query functions
170170
- Connects to WiFi (if needed and enabled)
171171
- Initializes On/Off Light endpoint
172172
- Starts Matter stack
173173
- Prints commissioning information
174174

175-
- **`loop()`**:
175+
- **`loop()`**:
176176
- Reports connection status every 10 seconds
177177
- All light control is handled via Matter callbacks
178178

@@ -200,4 +200,3 @@ Use a Matter-compatible hub (like an Apple HomePod, Google Nest Hub, or Amazon E
200200
## License
201201

202202
This example is licensed under the Apache License, Version 2.0.
203-

libraries/Matter/examples/MatterStatus/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ fqbn_append: PartitionScheme=huge_app
22

33
requires:
44
- CONFIG_ESP_MATTER_ENABLE_DATA_MODEL=y
5-

libraries/Matter/src/Matter.cpp

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,11 @@ void ArduinoMatter::begin() {
179179
bool ArduinoMatter::isWiFiStationEnabled() {
180180
// Check hardware support (SOC capabilities) AND Matter configuration
181181
#ifdef SOC_WIFI_SUPPORTED
182-
#if CHIP_DEVICE_CONFIG_ENABLE_WIFI_STATION
183-
return true;
184-
#else
185-
return false;
186-
#endif
182+
#if CHIP_DEVICE_CONFIG_ENABLE_WIFI_STATION
183+
return true;
184+
#else
185+
return false;
186+
#endif
187187
#else
188188
return false;
189189
#endif
@@ -192,11 +192,11 @@ bool ArduinoMatter::isWiFiStationEnabled() {
192192
bool ArduinoMatter::isWiFiAccessPointEnabled() {
193193
// Check hardware support (SOC capabilities) AND Matter configuration
194194
#ifdef SOC_WIFI_SUPPORTED
195-
#if CHIP_DEVICE_CONFIG_ENABLE_WIFI_AP
196-
return true;
197-
#else
198-
return false;
199-
#endif
195+
#if CHIP_DEVICE_CONFIG_ENABLE_WIFI_AP
196+
return true;
197+
#else
198+
return false;
199+
#endif
200200
#else
201201
return false;
202202
#endif
@@ -215,17 +215,16 @@ bool ArduinoMatter::isBLECommissioningEnabled() {
215215
// Check hardware support (SOC capabilities) AND Matter/ESP configuration
216216
// BLE commissioning requires: SOC BLE support AND (CHIPoBLE or NimBLE enabled)
217217
#ifdef SOC_BLE_SUPPORTED
218-
#if CONFIG_ENABLE_CHIPOBLE
219-
return true;
220-
#else
221-
return false;
222-
#endif
218+
#if CONFIG_ENABLE_CHIPOBLE
219+
return true;
220+
#else
221+
return false;
222+
#endif
223223
#else
224224
return false;
225225
#endif
226226
}
227227

228-
229228
bool ArduinoMatter::isDeviceCommissioned() {
230229
return chip::Server::GetInstance().GetFabricTable().FabricCount() > 0;
231230
}

libraries/Matter/src/Matter.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,10 @@ class ArduinoMatter {
182182

183183
// Network and Commissioning Capability Queries
184184
// These methods check both hardware support (SOC capabilities) and Matter configuration
185-
static bool isWiFiStationEnabled(); // Check if WiFi Station mode is supported and enabled
186-
static bool isWiFiAccessPointEnabled(); // Check if WiFi AP mode is supported and enabled
187-
static bool isThreadEnabled(); // Check if Thread network is supported and enabled
188-
static bool isBLECommissioningEnabled(); // Check if BLE commissioning is supported and enabled
185+
static bool isWiFiStationEnabled(); // Check if WiFi Station mode is supported and enabled
186+
static bool isWiFiAccessPointEnabled(); // Check if WiFi AP mode is supported and enabled
187+
static bool isThreadEnabled(); // Check if Thread network is supported and enabled
188+
static bool isBLECommissioningEnabled(); // Check if BLE commissioning is supported and enabled
189189

190190
static bool isDeviceCommissioned();
191191
static bool isWiFiConnected();

0 commit comments

Comments
 (0)