dfu: mcuboot_shell: Add command to enter serial recovery
Adds a command which can be used to enter mcuboot's serial recovery mode when the retention subsystem is enabled. Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
parent
7e11b6392b
commit
5e8b067364
2 changed files with 35 additions and 1 deletions
|
@ -19,7 +19,7 @@ int bootmode_check(uint8_t boot_mode)
|
|||
|
||||
rc = retention_is_valid(boot_mode_dev);
|
||||
|
||||
if (rc == 1) {
|
||||
if (rc == 1 || rc == -ENOTSUP) {
|
||||
uint8_t stored_mode;
|
||||
|
||||
rc = retention_read(boot_mode_dev, 0, &stored_mode, sizeof(stored_mode));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue