[chirp_devel] [PATCH] [kenwood_live] Support for all freq steps in 271/281 Fixes #795
# HG changeset patch # User Ryan Tourge K2RRT ryan.tourge@gmail.comx # Date 1428543111 14400 # Wed Apr 08 21:31:51 2015 -0400 # Node ID 4deac6b0c64a5f5923b3d2eb2b5c3136b11fd4bf # Parent e5c23688bffb6c04a7fd45be201db5ae481a804f [kenwood_live] Support for all freq steps in 271/281 Fixes #795
diff -r e5c23688bffb -r 4deac6b0c64a chirp/drivers/kenwood_live.py --- a/chirp/drivers/kenwood_live.py Tue Apr 07 21:26:17 2015 -0400 +++ b/chirp/drivers/kenwood_live.py Wed Apr 08 21:31:51 2015 -0400 @@ -1260,6 +1260,7 @@ return spec
+TM271_STEPS = [2.5, 5.0, 6.25, 10.0, 12.5, 15.0, 20.0, 25.0, 30.0, 50.0, 100.0] @directory.register class TM271Radio(THK2Radio): """Kenwood TM-271""" @@ -1278,7 +1279,7 @@ rf.valid_name_length = 6 rf.valid_bands = [(137000000, 173990000)] rf.valid_skips = ["", "S"] - rf.valid_tuning_steps = [5.0] + rf.valid_tuning_steps = list(TM271_STEPS) rf.memory_bounds = (0, 99) return rf
# HG changeset patch # User Ryan Tourge K2RRT ryan.tourge@gmail.comx # Date 1428543111 14400 # Wed Apr 08 21:31:51 2015 -0400 # Node ID 4deac6b0c64a5f5923b3d2eb2b5c3136b11fd4bf # Parent e5c23688bffb6c04a7fd45be201db5ae481a804f [kenwood_live] Support for all freq steps in 271/281 Fixes #795
diff -r e5c23688bffb -r 4deac6b0c64a chirp/drivers/kenwood_live.py --- a/chirp/drivers/kenwood_live.py Tue Apr 07 21:26:17 2015 -0400 +++ b/chirp/drivers/kenwood_live.py Wed Apr 08 21:31:51 2015 -0400 @@ -1260,6 +1260,7 @@ return spec
+TM271_STEPS = [2.5, 5.0, 6.25, 10.0, 12.5, 15.0, 20.0, 25.0, 30.0, 50.0, 100.0] @directory.register
This doesn't pass PEP8 because:
./chirp/drivers/kenwood_live.py:1264:1: E302 expected 2 blank lines, found 0
I fixed it up for you in a follow-up patch. Running ./run_all_tests.sh in the tree before you submit will find such things for you.
Thanks a lot for picking this up Ryan!
--Dan
Gotcha. I will pay closer attention to detail next time. Thanks for the help! On Apr 8, 2015 10:30 PM, "Dan Smith" dsmith@danplanet.com wrote:
# HG changeset patch # User Ryan Tourge K2RRT ryan.tourge@gmail.comx # Date 1428543111 14400 # Wed Apr 08 21:31:51 2015 -0400 # Node ID 4deac6b0c64a5f5923b3d2eb2b5c3136b11fd4bf # Parent e5c23688bffb6c04a7fd45be201db5ae481a804f [kenwood_live] Support for all freq steps in 271/281 Fixes #795
diff -r e5c23688bffb -r 4deac6b0c64a chirp/drivers/kenwood_live.py --- a/chirp/drivers/kenwood_live.py Tue Apr 07 21:26:17 2015 -0400 +++ b/chirp/drivers/kenwood_live.py Wed Apr 08 21:31:51 2015 -0400 @@ -1260,6 +1260,7 @@ return spec
+TM271_STEPS = [2.5, 5.0, 6.25, 10.0, 12.5, 15.0, 20.0, 25.0, 30.0,
50.0, 100.0]
@directory.register
This doesn't pass PEP8 because:
./chirp/drivers/kenwood_live.py:1264:1: E302 expected 2 blank lines, found 0
I fixed it up for you in a follow-up patch. Running ./run_all_tests.sh in the tree before you submit will find such things for you.
Thanks a lot for picking this up Ryan!
--Dan
chirp_devel mailing list chirp_devel@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_devel Developer docs: http://chirp.danplanet.com/projects/chirp/wiki/Developers
participants (2)
-
Dan Smith
-
Ryan Tourge