summaryrefslogtreecommitdiff
path: root/tests/base.py
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2025-11-11 22:37:12 +0000
committerDave Hibberd <hibby@debian.org>2025-11-11 22:37:12 +0000
commit261582ca78b59d466b32f3b5ab0e0e20fd314d26 (patch)
tree6266ccd1e01fcedc75aa349f2f7e106d73abe8a1 /tests/base.py
parentdff1a610625ebe7841fca01e20ca6d86b65ee4d0 (diff)
New upstream version 20251108upstream/20251108
Diffstat (limited to 'tests/base.py')
-rw-r--r--tests/base.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/base.py b/tests/base.py
index af29310..c6ed191 100644
--- a/tests/base.py
+++ b/tests/base.py
@@ -79,6 +79,16 @@ class DriverTest(unittest.TestCase):
attempt = 0
for band_lo, band_hi in self.rf.valid_bands:
m.freq = band_lo
+ if chirp_common.is_airband(m.freq):
+ # Air band requires special step handling.
+ # First see if we can pick a 2m frequency to avoid airband
+ # details.
+ if chirp_common.in_range(146520000, self.rf.valid_bands):
+ m.freq = 146520000
+ else:
+ # Nope, so go 25kHz up from the bottom of the band to
+ # avoid 8.33kHz issues
+ m.freq += 25000
if self.rf.valid_tuning_steps:
# If we have valid tuning steps, go one step above the
# bottom of the band. Select a different tuning_step each