Commit 261b358d authored by Anders Storrø's avatar Anders Storrø Committed by Fabio Baltieri
Browse files

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: default avatarAnders Storrø <anders.storro@nordicsemi.no>
parent 8716b6a9
Loading
Loading
Loading
Loading
+1 −1
Changes for subsys/bluetooth/mesh/shell/dfd.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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;
	}