[chirp_devel] [PATCH 1 of 2] For radios without tuning steps, test 10 KHz down from the edge. #4689

Tom Hayward
Thu Mar 30 12:16:19 PDT 2017


# HG changeset patch
# User Tom Hayward <tom at tomh.us>
# Date 1490901242 25200
#      Thu Mar 30 12:14:02 2017 -0700
# Node ID 38e99fa3fda076acd3c5989071aa048eb9d91a52
# Parent  e2386f04138cf4d91b26d704c6dc58f80fe49ec3
For radios without tuning steps, test 10 KHz down from the edge. #4689

This should be compatible with virtually any radio.

diff -r e2386f04138c -r 38e99fa3fda0 tests/run_tests
--- a/tests/run_tests	Wed Mar 29 21:55:48 2017 -0700
+++ b/tests/run_tests	Thu Mar 30 12:14:02 2017 -0700
@@ -535,7 +535,7 @@
 
     def do_bandedges(self, rf):
         m = self._mem(rf)
-        min_step = min(rf.valid_tuning_steps or chirp_common.TUNING_STEPS)
+        min_step = min(rf.has_tuning_step and rf.valid_tuning_steps or [10])
 
         for low, high in rf.valid_bands:
             for freq in (low, high - int(min_step * 1000)):



More information about the chirp_devel mailing list