Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get trx state error condition #2

Merged
merged 3 commits into from
Feb 21, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Set state to 'ERROR' if all three attempts fail
  • Loading branch information
praxiscode committed Jan 17, 2019
commit 5ab4f6910d99eebcaa95f6a98827a2936a2c4575
2 changes: 2 additions & 0 deletions pyfldigi/client/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@ def get_trx_state(self, suppress_errors=False):
if state in ['TX', 'RX', 'TUNE']:
break
time.sleep(0.005)
else:
state = 'ERROR'
return state

def rx(self):
Expand Down