From 4bff888a8f991008052585dafd8412bc45797728 Mon Sep 17 00:00:00 2001 From: Richard Wells Date: Thu, 7 Jul 2022 13:39:16 +0100 Subject: [PATCH] Fixes chef tool crashing (#20421) without -r flag. --- examples/chef/chef.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/chef/chef.py b/examples/chef/chef.py index 723861bbc35dbf..7b6b0ec4d950a2 100755 --- a/examples/chef/chef.py +++ b/examples/chef/chef.py @@ -615,7 +615,7 @@ def main(argv: Sequence[str]) -> None: 'chip_shell_cmd_server = false', 'chip_build_libshell = true', 'chip_config_network_layer_ble = false', - f'target_defines = ["CHIP_DEVICE_CONFIG_DEVICE_VENDOR_ID={options.vid}", "CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_ID={options.pid}", "CONFIG_ENABLE_PW_RPC={int(options.do_rpc)}"]', + f'target_defines = ["CHIP_DEVICE_CONFIG_DEVICE_VENDOR_ID={options.vid}", "CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_ID={options.pid}", "CONFIG_ENABLE_PW_RPC={"1" if options.do_rpc else "0"}"]', ]) if options.cpu_type == "arm64": uname_resp = shell.run_cmd("uname -m", return_cmd_output=True)