From 4d9dc68423e0c0e1e0926fcce1b98abbe534a9ad Mon Sep 17 00:00:00 2001 From: Richard Wells Date: Thu, 7 Jul 2022 17:59:32 +0100 Subject: [PATCH] Fixes chef tool crashing (#20421) without -r flag. (#20436) --- 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 4796b795981c06..2b28233bf07229 100755 --- a/examples/chef/chef.py +++ b/examples/chef/chef.py @@ -614,7 +614,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)