From 38ca2cbda04aef2d609f5ee26e5cc4e7361a6d8e Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Fri, 13 Sep 2024 17:22:04 -0700 Subject: [PATCH] ga510v2: Limit name to 8 chars per OEM Fixes #11425 --- chirp/drivers/baofeng_uv17.py | 2 +- chirp/drivers/ga510.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chirp/drivers/baofeng_uv17.py b/chirp/drivers/baofeng_uv17.py index 17e10ef3..d50ec5fa 100644 --- a/chirp/drivers/baofeng_uv17.py +++ b/chirp/drivers/baofeng_uv17.py @@ -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) diff --git a/chirp/drivers/ga510.py b/chirp/drivers/ga510.py index 4e60940e..f34e3331 100644 --- a/chirp/drivers/ga510.py +++ b/chirp/drivers/ga510.py @@ -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"]