Bluetooth: Mesh: Shell: Update DFD start bool parse
Changes the parsing of boolean input parameter "PolicyApply" to DFD start command to use shell boolean parse library. Signed-off-by: Anders Storrø <anders.storro@nordicsemi.no>
This commit is contained in:
parent
8716b6a900
commit
261b358dc3
1 changed files with 1 additions and 1 deletions
|
@ -223,7 +223,7 @@ static int cmd_dfd_start(const struct shell *sh, size_t argc, char *argv[])
|
|||
}
|
||||
|
||||
if (argc > 4) {
|
||||
params.apply = strcmp(argv[4], "true") ? false : true;
|
||||
params.apply = shell_strtobool(argv[4], 0, &err);
|
||||
} else {
|
||||
params.apply = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue