[chirp_devel] [PATCH] [uv-b5] add additional ACK value

Jim Unroe
Sat Nov 23 07:51:20 PST 2013


# HG changeset patch
# User Jim Unroe <rock.unroe at gmail.com>
# Date 1385220952 18000
# Node ID 409ecf4c129224a4850880f763f2bfaee5e08052
# Parent  fc6b4cd40403f4bb3f2b9bc3578366fdf20a85c6
[uv-b5] add additional ACK value
'unexpected response' caused by '0x48' not in list of expected ACK values
related to bug #1111

diff -r fc6b4cd40403 -r 409ecf4c1292 chirp/uvb5.py
--- a/chirp/uvb5.py	Sun Nov 17 11:15:47 2013 -0800
+++ b/chirp/uvb5.py	Sat Nov 23 10:35:52 2013 -0500
@@ -194,7 +194,7 @@
             raise errors.RadioError("Invalid response for address 0x%04x" % i)
         radio.pipe.write("\x06")
         ack = radio.pipe.read(1)
-        if ack not in ('\x74', '\x78', '\x1f'):
+        if ack not in ('\x48', '\x74', '\x78', '\x1f'):
             print util.hexprint(ack)
             raise errors.RadioError("Unexpected response")
         data += result[4:]



More information about the chirp_devel mailing list