From 261b358dc3183fb6b825a96aa80bb35eeaf3d6ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Storr=C3=B8?= Date: Tue, 7 May 2024 12:11:21 +0200 Subject: [PATCH] Bluetooth: Mesh: Shell: Update DFD start bool parse MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changes the parsing of boolean input parameter "PolicyApply" to DFD start command to use shell boolean parse library. Signed-off-by: Anders Storrø --- subsys/bluetooth/mesh/shell/dfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/bluetooth/mesh/shell/dfd.c b/subsys/bluetooth/mesh/shell/dfd.c index 4b3d4970282..81c9d557c5d 100644 --- a/subsys/bluetooth/mesh/shell/dfd.c +++ b/subsys/bluetooth/mesh/shell/dfd.c @@ -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; }