Skip to content

Commit

Permalink
examples: python: Fix pyserial read timeout
Browse files Browse the repository at this point in the history
Fixes: #173
Signed-off-by: Siddharth Chandrasekaran <[email protected]>
  • Loading branch information
sidcha committed Apr 18, 2024
1 parent bd15c2b commit 1d25d6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/python/cp_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion examples/python/pd_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1d25d6a

Please sign in to comment.