[chirp_devel] [PATCH] [yaesu common] add more logging on uploads/downloads #1799
# HG changeset patch # User Jens Jensen kd4tjx@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):
participants (1)
-
Jens Jensen