From 4ff6c01aa7f9ae1b8db63d192b5e664dcfd1ea69 Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Thu, 6 Aug 2020 23:01:02 +0200 Subject: Lots of python3 porting missing, tested so far: Baofeng UV-5R. --- debian/patches/py3-fixes | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'debian/patches') diff --git a/debian/patches/py3-fixes b/debian/patches/py3-fixes index 092d5bb..087a266 100644 --- a/debian/patches/py3-fixes +++ b/debian/patches/py3-fixes @@ -9,3 +9,14 @@ """Sets the parameters to use for the query""" self._lat = lat self._lon = lon +--- a/chirp/drivers/uv5r.py ++++ b/chirp/drivers/uv5r.py +@@ -587,7 +587,7 @@ def _do_download(radio): + data += _read_block(radio, i, 0x40, False) + + if append_model: +- data += radio.MODEL.ljust(8) ++ data += bytes(radio.MODEL.encode('utf-8').ljust(8)) + + LOG.debug("done.") + return memmap.MemoryMapBytes(data) -- cgit v1.2.3