From 2725042ffa9fca7d9398108f0a1ded1ff802b585 Mon Sep 17 00:00:00 2001 From: rgoliver Date: Mon, 4 Apr 2022 17:34:30 -0400 Subject: [PATCH] RPC: Use non-blocking serial for console (#17018) Switching to non-blocking for serial is much faster for RPC commands. --- examples/common/pigweed/rpc_console/py/chip_rpc/console.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/common/pigweed/rpc_console/py/chip_rpc/console.py b/examples/common/pigweed/rpc_console/py/chip_rpc/console.py index 66daafbf1035c5..65fdfc034f60ab 100644 --- a/examples/common/pigweed/rpc_console/py/chip_rpc/console.py +++ b/examples/common/pigweed/rpc_console/py/chip_rpc/console.py @@ -325,7 +325,7 @@ def console(device: str, baudrate: int, serial_impl = SerialWithLogging if socket_addr is None: - serial_device = serial_impl(device, baudrate, timeout=1) + serial_device = serial_impl(device, baudrate, timeout=0) def read(): return serial_device.read(8192) write = serial_device.write else: