Skip to content

Commit

Permalink
ga510v2: Limit name to 8 chars per OEM
Browse files Browse the repository at this point in the history
Fixes #11425
  • Loading branch information
kk7ds committed Sep 17, 2024
1 parent 249da4a commit d064ebd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chirp/drivers/baofeng_uv17.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ def set_memory(self, mem):
_mem.set_raw(b"\x00" * 16)

_namelength = self.get_features().valid_name_length
_nam.name = mem.name.ljust(_namelength, '\x00')
_nam.name = mem.name[:_namelength].ljust(11, '\x00')

self.set_memory_common(mem, _mem)

Expand Down
2 changes: 1 addition & 1 deletion chirp/drivers/ga510.py
Original file line number Diff line number Diff line change
Expand Up @@ -1163,7 +1163,7 @@ class RadioddityGA510v2(baofeng_uv17.UV17):
chirp_common.PowerLevel("Medium", watts=5.00),
chirp_common.PowerLevel("High", watts=10.00)]

LENGTH_NAME = 11
LENGTH_NAME = 8
SCODE_LIST = ["%s" % x for x in range(1, 16)]
SQUELCH_LIST = ["Off"] + list("123456789")
LIST_POWERON_DISPLAY_TYPE = ["Full", "Message", "Voltage"]
Expand Down

0 comments on commit d064ebd

Please sign in to comment.