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:
Anders Storrø 2024-05-07 12:11:21 +02:00 committed by Fabio Baltieri
commit 261b358dc3

View file

@ -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;
}