From 9a8d2065f122fc4b41aae26c9496cd912292269d Mon Sep 17 00:00:00 2001 From: Chris Kuethe Date: Sat, 17 Feb 2024 14:08:10 -0800 Subject: [PATCH] radiacode appears to update internally at 2Hz --- src/rcmultispg.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/rcmultispg.py b/src/rcmultispg.py index f0017a5..1ecb23d 100755 --- a/src/rcmultispg.py +++ b/src/rcmultispg.py @@ -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))