Skip to content

Commit 0b5bf99

Browse files
restyler
1 parent cd4c0af commit 0b5bf99

File tree

6 files changed

+22
-16
lines changed

6 files changed

+22
-16
lines changed

examples/lock-app/silabs/src/LockManager.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ using namespace ::chip::DeviceLayer::Internal;
2929
using namespace EFR32DoorLock::LockInitParams;
3030

3131
namespace {
32-
LockManager sLock;
32+
LockManager sLock;
3333
} // namespace
3434

3535
LockManager & LockMgr()
@@ -264,7 +264,9 @@ void LockManager::UnlockAfterUnlatch()
264264
bool succes = false;
265265
if (mUnlatchContext.mEndpointId != kInvalidEndpointId)
266266
{
267-
Optional<chip::ByteSpan> pin = (mUnlatchContext.mPinLength) ? MakeOptional(chip::ByteSpan(mUnlatchContext.mPinBuffer, mUnlatchContext.mPinLength)): Optional<chip::ByteSpan>::Missing();
267+
Optional<chip::ByteSpan> pin = (mUnlatchContext.mPinLength)
268+
? MakeOptional(chip::ByteSpan(mUnlatchContext.mPinBuffer, mUnlatchContext.mPinLength))
269+
: Optional<chip::ByteSpan>::Missing();
268270
succes = setLockState(mUnlatchContext.mEndpointId, mUnlatchContext.mFabricIdx, mUnlatchContext.mNodeId,
269271
DlLockState::kUnlocked, pin, mUnlatchContext.mErr);
270272
}

examples/platform/silabs/MatterConfig.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -191,11 +191,11 @@ void ApplicationStart(void * unused)
191191

192192
void SilabsMatterConfig::AppInit()
193193
{
194-
#if CHIP_ENABLE_OPENTHREAD && (SL_MATTER_GN_BUILD == 0)
194+
#if CHIP_ENABLE_OPENTHREAD && (SL_MATTER_GN_BUILD == 0)
195195
// SLC-FIX
196196
// TODO: Remove the Power Manager remove req when OT does not add an EM1 req at init
197197
sl_power_manager_remove_em_requirement(SL_POWER_MANAGER_EM1);
198-
#endif
198+
#endif
199199

200200
GetPlatform().Init();
201201
sMainTaskHandle = osThreadNew(ApplicationStart, nullptr, &kMainTaskAttr);

scripts/tools/silabs/retrieve_sl_commits.py

+12-9
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#! /usr/bin/python3
2-
import subprocess
32
import argparse
3+
import subprocess
44
from argparse import RawTextHelpFormatter
55

6+
67
def get_git_log(start_sha, end_sha, prefixes):
78
try:
89
# Run the git log command with output format <commit hash> -- <Title>
@@ -13,26 +14,27 @@ def get_git_log(start_sha, end_sha, prefixes):
1314
check=True,
1415
text=True
1516
)
16-
17+
1718
# Split the result into lines
1819
log_lines = result.stdout.split('\n')
19-
20+
2021
# Initialize a dictionary to hold commits by prefix
2122
commits_by_prefix = {prefix: [] for prefix in prefixes}
22-
23+
2324
# Filter and group commits based on the prefixes
2425
for line in log_lines:
2526
for prefix in prefixes:
2627
if prefix in line:
2728
commits_by_prefix[prefix].append(line)
2829
break
29-
30+
3031
return commits_by_prefix
31-
32+
3233
except subprocess.CalledProcessError as e:
3334
print(f"Error running git log: {e}")
3435
return {}
3536

37+
3638
def main():
3739
parser = argparse.ArgumentParser(formatter_class=RawTextHelpFormatter, description="""
3840
This script will parse git logs for our silabs prefixes ([SL-UP], [SL-TEMP], [SL-ONLY] or [CSA-CP]) between the commit SHAs provided in parameters
@@ -41,7 +43,7 @@ def main():
4143
[PREFIX] commits:
4244
<full_commit_sha> -- <Commit_Title>
4345
""",
44-
epilog= """
46+
epilog="""
4547
Post result developer actions:
4648
commits grouped under [SL-UP] shall be upstream the CSA master.
4749
commits grouped under [SL-ONLY] shall be cherry-picked to matter_sdk main branch.
@@ -52,7 +54,7 @@ def main():
5254
parser.add_argument('end_sha', type=str, help='The ending commit SHA')
5355

5456
args = parser.parse_args()
55-
57+
5658
start_sha = args.start_sha
5759
end_sha = args.end_sha
5860
prefixes = ["[SL-UP]", "[SL-TEMP]", "[SL-ONLY]", "[CSA-CP]"]
@@ -64,5 +66,6 @@ def main():
6466
print(commit)
6567
print()
6668

69+
6770
if __name__ == "__main__":
68-
main()
71+
main()

src/app/clusters/fan-control-server/fan-control-server.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
#pragma once
1919

2020
#include "fan-control-delegate.h"
21-
#include <app/AttributeAccessInterface.h>
2221
#include <app-common/zap-generated/cluster-objects.h>
22+
#include <app/AttributeAccessInterface.h>
2323
#include <app/util/af-types.h>
2424

2525
namespace chip {

src/app/util/attribute-metadata.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ bool emberAfIsStringAttributeType(EmberAfAttributeType attributeType)
3636
bool emberAfIsLongStringAttributeType(EmberAfAttributeType attributeType)
3737
{
3838
return (attributeType == ZCL_LONG_OCTET_STRING_ATTRIBUTE_TYPE || attributeType == ZCL_LONG_CHAR_STRING_ATTRIBUTE_TYPE);
39-
}
39+
}

src/platform/silabs/wifi/rs911x/WifiInterface.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,8 @@ void ProcessEvent(WifiEvent event)
743743
ap.ssid_length =
744744
strnlen(reinterpret_cast<char *>(scan->ssid), chip::min<size_t>(sizeof(scan->ssid), WFX_MAX_SSID_LENGTH));
745745
// ap.ssid is of size WFX_MAX_SSID_LENGTH+1, we are safe with the ap.ssid_length calculated above
746-
chip::Platform::CopyString(ap.ssid, ap.ssid_length + 1, reinterpret_cast<char *>(scan->ssid)); // +1 for null termination
746+
chip::Platform::CopyString(ap.ssid, ap.ssid_length + 1,
747+
reinterpret_cast<char *>(scan->ssid)); // +1 for null termination
747748

748749
// check if the scanned ssid is the one we are looking for
749750
if (wfx_rsi.scan_ssid_length != 0 && strncmp(wfx_rsi.scan_ssid, ap.ssid, WFX_MAX_SSID_LENGTH) != 0)

0 commit comments

Comments
 (0)