[chirp_devel] [PATCH] [IC-7000] Minor LOG.debug changes fixes #3149
Joseph.P.Scanlan at n7xsd.us
Fri Jan 8 11:36:19 PST 2016
# HG changeset patch
# User <Joseph.P.Scanlan at n7xsd.us>
# Date 1452281563 28800
# Fri Jan 08 11:32:43 2016 -0800
# Node ID aa96f287e5d2a80f692045297ec20a055e1ba056
# Parent 0dab2109bbd98b0f0603f46f408569ab1463d232
[IC-7000] Minor LOG.debug changes fixes #3149
Swapped source and destination addresses in one debug statement to reflect the direction of the arrow; added extd_number to another LOG.debug; and added a third LOG.debug.
diff -r 0dab2109bbd9 -r aa96f287e5d2 chirp/drivers/icomciv.py
--- a/chirp/drivers/icomciv.py Mon Jan 04 14:06:25 2016 -0800
+++ b/chirp/drivers/icomciv.py Fri Jan 08 11:32:43 2016 -0800
@@ -116,7 +116,7 @@
raise errors.RadioError("Radio reported error")
src, dst = struct.unpack("BB", data[2:4])
- LOG.debug("%02x <- %02x:\n%s" % (src, dst, util.hexprint(data)))
+ LOG.debug("%02x <- %02x:\n%s" % (dst, src, util.hexprint(data)))
self._cmd = ord(data[4])
self._sub = ord(data[5])
@@ -301,6 +301,7 @@
raise errors.RadioError("Radio reported error")
if f.get_data() and f.get_data()[-1] == "\xFF":
mem.empty = True
+ LOG.debug("Found %i empty" % mem.number)
return mem
memobj = f.get_obj()
@@ -351,7 +352,7 @@
return mem
def set_memory(self, mem):
- LOG.debug("Setting %i" % mem.number)
+ LOG.debug("Setting %i(%s)" % (mem.number, mem.extd_number))
if self._rf.has_bank:
ch, bnk = self.mem_to_ch_bnk(mem.number)
LOG.debug("Bank %i, Channel %02i" % (bnk, ch))
More information about the chirp_devel
mailing list