Skip to content

Commit e7a153f

Browse files
[Silabs] Adding disconnect on factory reset and OTA rename to multi ota (#34098)
* adding disconnect on factory reset and OTA rename * Restyled by prettier-markdown * modifying the md files as addressed * replacing the ota_multi_image_tool to ota_image_tool --------- Co-authored-by: Restyled.io <commits@restyled.io>
1 parent 4672e1a commit e7a153f

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

scripts/tools/silabs/ota/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ This is a wrapper over standard `ota_image_tool.py`, so the options for `create`
2121
are also available here:
2222

2323
```
24-
python3 ./scripts/tools/silabs/ota/ota_image_tool.py create -v 0xDEAD -p 0xBEEF -vn 50000 -vs "1.0" -da sha256
24+
python3 ./scripts/tools/silabs/ota/ota_multi_image_tool.py create -v 0xDEAD -p 0xBEEF -vn 50000 -vs "1.0" -da sha256
2525
```
2626

2727
followed by \*_custom options_- and a positional argument (should be last) that

src/platform/silabs/ConfigurationManagerImpl.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,11 @@ void ConfigurationManagerImpl::DoFactoryReset(intptr_t arg)
283283
PersistedStorage::KeyValueStoreMgrImpl().ErasePartition();
284284

285285
#if CHIP_DEVICE_CONFIG_ENABLE_WIFI_STATION
286+
sl_status_t status = wfx_sta_discon();
287+
if (status != SL_STATUS_OK)
288+
{
289+
ChipLogError(DeviceLayer, "wfx_sta_discon() failed: %lx", status);
290+
}
286291
ChipLogProgress(DeviceLayer, "Clearing WiFi provision");
287292
wfx_clear_wifi_provision();
288293
#endif // CHIP_DEVICE_CONFIG_ENABLE_WIFI_STATION

0 commit comments

Comments
 (0)