diff options
| author | Dave Hibberd <hibby@debian.org> | 2026-08-20 23:11:02 +0100 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2026-08-20 23:11:02 +0100 |
| commit | 5f4fe8ab00a12060662e5df0fc8855f0488de35d (patch) | |
| tree | 95a7d9b81673c059b18a1e551079104050b4ca11 /tests/base.py | |
| parent | dff1a610625ebe7841fca01e20ca6d86b65ee4d0 (diff) | |
New upstream version 20260814upstream/20260814
Diffstat (limited to 'tests/base.py')
| -rw-r--r-- | tests/base.py | 10 |
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 |
