Skip to content

Commit

Permalink
RPC: Use non-blocking serial for console (#17018)
Browse files Browse the repository at this point in the history
Switching to non-blocking for serial is much faster for RPC commands.
  • Loading branch information
rgoliver authored and pull[bot] committed Jan 15, 2024
1 parent 670248d commit 2725042
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/common/pigweed/rpc_console/py/chip_rpc/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2725042

Please sign in to comment.