Skip to content

Commit aa52134

Browse files
committed
TMO_SHELL: DFU: Replaced else of slot check.
Signed-off-by: Kim Mansfield <[email protected]>
1 parent fb4b455 commit aa52134

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

samples/tmo_shell/src/tmo_shell.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1811,6 +1811,9 @@ int cmd_dfu_update(const struct shell *shell, size_t argc, char **argv)
18111811
return -EINVAL;
18121812
}
18131813
}
1814+
#else
1815+
shell_error(shell,"Can't program over currently running firmware");
1816+
return -EINVAL;
18141817
#endif
18151818
shell_print(shell,"\nStarting the FW update for SiLabs Pearl Gecko");
18161819
int status;

0 commit comments

Comments
 (0)