From a0282a6b50da262308e078052b3d7ee2b588d040 Mon Sep 17 00:00:00 2001 From: Jim Unroe Date: Wed, 28 Jun 2023 21:44:46 -0400 Subject: [PATCH] iradio_uv_5118plus.py: use space padding for channel names --- chirp/drivers/iradio_uv_5118plus.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chirp/drivers/iradio_uv_5118plus.py b/chirp/drivers/iradio_uv_5118plus.py index 17b3f303d..a4fe7b4a3 100644 --- a/chirp/drivers/iradio_uv_5118plus.py +++ b/chirp/drivers/iradio_uv_5118plus.py @@ -521,7 +521,7 @@ def get_memory(self, number): else: mem.offset = 0 - mem.name = str(_mem.name).rstrip('\xFF ') + mem.name = str(_mem.name).rstrip(" ").replace("\xFF", " ") mem.mode = _mem.isnarrow and "NFM" or "FM" @@ -565,7 +565,7 @@ def set_memory(self, mem): # if empty memory if mem.empty: - _mem.set_raw("\xFF" * 22 + "\20" * 10) + _mem.set_raw("\xFF" * 22 + "\x20" * 10) return _mem.set_raw("\xFF" * 4 + "\x00\x30" + "\xFF" * 4 + "\x00\x30" + @@ -582,7 +582,7 @@ def set_memory(self, mem): else: _mem.txfreq = mem.freq / 10 - _mem.name = mem.name.rstrip(' ').ljust(10, '\xFF') + _mem.name = mem.name.rstrip('\xFF').ljust(10, '\x20') _mem.scan = mem.skip != "S" _mem.isnarrow = mem.mode == "NFM"