Skip to content

Commit

Permalink
examples: python: Fixup some more minor issues
Browse files Browse the repository at this point in the history
Signed-off-by: Siddharth Chandrasekaran <[email protected]>
  • Loading branch information
sidcha committed Feb 16, 2024
1 parent 2e07d66 commit 729845c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/python/cp_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@
break
count += 1

cp.stop()
cp.teardown()
6 changes: 3 additions & 3 deletions examples/python/pd_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
## Create a PD device and kick-off the handler thread
pd = PeripheralDevice(pd_info, pd_cap, log_level=LogLevel.Debug)
pd.start()
pd.sc_wait()
pd.sc_wait(timeout=-1)

## create a card read event to be used later
card_event = {
Expand All @@ -36,7 +36,7 @@

while True:
## Check if we have any commands from the CP
cmd = pd.get_command(timeout=2)
cmd = pd.get_command(timeout=5)
if cmd:
print(f"PD: Received command: {cmd}")

Expand All @@ -47,4 +47,4 @@
break
count += 1

pd.stop()
pd.teardown()

0 comments on commit 729845c

Please sign in to comment.