Skip to content

Commit

Permalink
radiacode appears to update internally at 2Hz
Browse files Browse the repository at this point in the history
  • Loading branch information
ckuethe committed Feb 17, 2024
1 parent 1ae3991 commit 9a8d206
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/rcmultispg.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,10 @@ def gte_zero(s):
)

rv = ap.parse_args()
if rv.interval < 0.2:
print("increasing poll interval to 0.2")
rv.interval = 0.2
min_poll = 0.5
if rv.interval < min_poll:
print(f"increasing poll interval to {min_poll}s")
rv.interval = min_poll

# post-processing stages.
rv.devs = list(set(rv.devs))
Expand Down

0 comments on commit 9a8d206

Please sign in to comment.