Skip to content

Commit

Permalink
[Silabs] Adding disconnect on factory reset and OTA rename to multi o…
Browse files Browse the repository at this point in the history
…ta (project-chip#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 <[email protected]>
  • Loading branch information
chirag-silabs and restyled-commits authored Jul 1, 2024
1 parent 4672e1a commit e7a153f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/tools/silabs/ota/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This is a wrapper over standard `ota_image_tool.py`, so the options for `create`
are also available here:

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

followed by \*_custom options_- and a positional argument (should be last) that
Expand Down
File renamed without changes.
5 changes: 5 additions & 0 deletions src/platform/silabs/ConfigurationManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,11 @@ void ConfigurationManagerImpl::DoFactoryReset(intptr_t arg)
PersistedStorage::KeyValueStoreMgrImpl().ErasePartition();

#if CHIP_DEVICE_CONFIG_ENABLE_WIFI_STATION
sl_status_t status = wfx_sta_discon();
if (status != SL_STATUS_OK)
{
ChipLogError(DeviceLayer, "wfx_sta_discon() failed: %lx", status);
}
ChipLogProgress(DeviceLayer, "Clearing WiFi provision");
wfx_clear_wifi_provision();
#endif // CHIP_DEVICE_CONFIG_ENABLE_WIFI_STATION
Expand Down

0 comments on commit e7a153f

Please sign in to comment.