[chirp_devel] [PATCH] [yaesu common] add more logging on uploads/downloads #1799
Jens Jensen
Fri Aug 8 15:42:57 PDT 2014
# HG changeset patch
# User Jens Jensen <kd4tjx at yahoo.com>
# Date 1407537768 18000
# Fri Aug 08 17:42:48 2014 -0500
# Node ID 34f8eec9d77ba91d7912072746dbe25157b2037e
# Parent 424916a7f71731c9ec70c25d7a378ec2373c488d
[yaesu common] add more logging on uploads/downloads #1799
diff -r 424916a7f717 -r 34f8eec9d77b chirp/yaesu_clone.py
--- a/chirp/yaesu_clone.py Sun Aug 03 19:16:06 2014 -0700
+++ b/chirp/yaesu_clone.py Fri Aug 08 17:42:48 2014 -0500
@@ -91,7 +91,8 @@
chunk = data[i:i+block]
pipe.write(chunk)
count += len(chunk)
- #print "Count is %i" % count
+ if os.getenv("CHIRP_DEBUG"):
+ print "@_chunk_write, count: %i, blocksize: %i" % (count,block)
time.sleep(delay)
status = chirp_common.Status()
@@ -119,7 +120,8 @@
for block in radio._block_lengths:
blocks += 1
if blocks != len(radio._block_lengths):
- #print "Sending %i-%i" % (pos, pos+block)
+ if os.getenv("CHIRP_DEBUG"):
+ print "Sending %i-%i" % (pos, pos+block)
pipe.write(radio.get_mmap()[pos:pos+block])
buf = pipe.read(1)
if buf and buf[0] != chr(CMD_ACK):
More information about the chirp_devel
mailing list