Skip to content

Commit

Permalink
Baofeng GMRS-9R: Support full band TX/RX - fixes #10388
Browse files Browse the repository at this point in the history
  • Loading branch information
KC9HI authored and kk7ds committed Jun 26, 2023
1 parent 24ea4cc commit 65da68a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
21 changes: 1 addition & 20 deletions chirp/drivers/baofeng_wp970i.py
Original file line number Diff line number Diff line change
Expand Up @@ -990,26 +990,7 @@ class UV9G(WP970I):
chirp_common.PowerLevel("Med", watts=0.50),
chirp_common.PowerLevel("Low", watts=0.50)]
_magic = [MSTRING_UV9G, ]
_gmrs = True

def validate_memory(self, mem):
msgs = super().validate_memory(mem)

_msg_duplex = 'Duplex must be "off" for this frequency'
_msg_offset = 'Only simplex or +5MHz offset allowed on GMRS'

if mem.freq not in bandplan_na.ALL_GMRS_FREQS:
if mem.duplex != "off":
msgs.append(chirp_common.ValidationWarning(_msg_duplex))
if mem.freq in bandplan_na.GMRS_HIRPT:
if mem.duplex and mem.offset != 5000000:
msgs.append(chirp_common.ValidationWarning(_msg_offset))

return msgs

def check_set_memory_immutable_policy(self, existing, new):
existing.immutable = []
super().check_set_memory_immutable_policy(existing, new)
_gmrs = False # sold as GMRS radio but supports full band TX/RX

@classmethod
def match_model(cls, filedata, filename):
Expand Down
1 change: 0 additions & 1 deletion tests/unit/test_chirp_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,6 @@ class TestOverrideRules(base.BaseTest):
IMMUTABLE_WHITELIST = [
# Uncomment me when the time comes
'Baofeng_GT-5R',
'Baofeng_UV-9G',
'BTECH_GMRS-20V2',
'BTECH_GMRS-50V2',
'BTECH_GMRS-50X1',
Expand Down

0 comments on commit 65da68a

Please sign in to comment.