# HG changeset patch # User Jim Unroe rock.unroe@gmail.com # Date 1594652731 14400 # Mon Jul 13 11:05:31 2020 -0400 # Node ID a832fc7ae354baa666c902ce96f93327622dfa5d # Parent 061e53a8a2cc1699bda1df5464be505ca32d572f [BF-A58S] baofeng_w970i.py driver cleanup
This patch cleans up the current tri-band radio model suppport in preperation for fixing the band limit support in the following patch.
Related to these and similar Baofeng tri-band models: BF-A58S UV-82III BF-UVF10
related to #8063
diff -r 061e53a8a2cc -r a832fc7ae354 chirp/drivers/baofeng_wp970i.py --- a/chirp/drivers/baofeng_wp970i.py Fri Jul 10 07:24:21 2020 -0700 +++ b/chirp/drivers/baofeng_wp970i.py Mon Jul 13 11:05:31 2020 -0400 @@ -109,6 +109,7 @@ chirp_common.PowerLevel("Med", watts=3.00), chirp_common.PowerLevel("Low", watts=1.00)] _vhf_range = (130000000, 180000000) + _vhf2_range = (200000000, 260000000) _uhf_range = (400000000, 521000000) VALID_BANDS = [_vhf_range, _uhf_range] @@ -899,7 +900,7 @@ def get_features(self): rf = WP970I.get_features(self) rf.valid_bands = [self._vhf_range, - (200000000, 260000000), + self._vhf2_range, self._uhf_range] return rf