[chirp_devel] [PATCH] patch for bug#4687, discard echoback immediately to avoid
SASANO Takayoshi
Wed Mar 29 03:46:57 PDT 2017
# HG changeset patch
# User SASANO Takayoshi <uaa at mx5.nisiq.net>
# Date 1490784386 -32400
# Wed Mar 29 19:46:26 2017 +0900
# Node ID 6183c0a2bfb7c6b5d5a80682ac63f55d3794a974
# Parent a5e45271bdec203c2b29cbc1f72f2a8bea0202e4
patch for bug#4687, discard echoback immediately to avoid
OS's serial RX buffer overflow.
diff -r a5e45271bdec -r 6183c0a2bfb7 chirp/drivers/icf.py
--- a/chirp/drivers/icf.py Sun Mar 26 14:51:53 2017 -0700
+++ b/chirp/drivers/icf.py Wed Mar 29 19:46:26 2017 +0900
@@ -198,6 +198,8 @@
pass
pipe.write(frame)
+ pipe.flush()
+ pipe.read(len(frame)) # discard echoback
return frame
@@ -261,6 +263,7 @@
LOG.debug("Starting HiSpeed Clone:\n%s" % util.hexprint(buf))
radio.pipe.write(buf)
radio.pipe.flush()
+ radio.pipe.read(len(buf)) # discard echoback
def _clone_from_radio(radio):
More information about the chirp_devel
mailing list