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"