From 1d25d6a206dfb2e7ac81b2f45b5db8888ec448d2 Mon Sep 17 00:00:00 2001 From: Siddharth Chandrasekaran Date: Thu, 18 Apr 2024 23:32:07 +0200 Subject: [PATCH] examples: python: Fix pyserial read timeout Fixes: #173 Signed-off-by: Siddharth Chandrasekaran --- examples/python/cp_app.py | 2 +- examples/python/pd_app.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/python/cp_app.py b/examples/python/cp_app.py index 5bad8aa..2c28548 100755 --- a/examples/python/cp_app.py +++ b/examples/python/cp_app.py @@ -11,7 +11,7 @@ class SerialChannel(Channel): def __init__(self, device: str, speed: int): - self.dev = serial.Serial(device, speed, timeout=1) + self.dev = serial.Serial(device, speed, timeout=0) def read(self, max_read: int): return self.dev.read(max_read) diff --git a/examples/python/pd_app.py b/examples/python/pd_app.py index 65fd469..c6d3404 100755 --- a/examples/python/pd_app.py +++ b/examples/python/pd_app.py @@ -11,7 +11,7 @@ class SerialChannel(Channel): def __init__(self, device: str, speed: int): - self.dev = serial.Serial(device, speed, timeout=1) + self.dev = serial.Serial(device, speed, timeout=0) def read(self, max: int): return self.dev.read(max)