CVS: python/msp430 jtag.py,1.6,1.7
Chris Liechti <[email protected]>
| Newsgroups | gmane.comp.hardware.texas-instruments.msp430.gcc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/mspgcc/python/msp430
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9115/python/msp430
Modified Files:
jtag.py
Log Message:
small fix in progress bar code
Index: jtag.py
===================================================================
RCS file: /cvsroot/mspgcc/python/msp430/jtag.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -w -d -r1.6 -r1.7
--- jtag.py 8 Sep 2004 14:55:42 -0000 1.6
+++ jtag.py 29 Oct 2004 18:03:23 -0000 1.7
@@ -332,6 +332,7 @@
raise JTAGException("Cannot do erase check against data with not knowing the actual data")
def progess_update(self, count, total):
+ """Textual progress output. Override in subclass to implement a different output"""
sys.stderr.write("\r%d%%" % (100*count/total))
sys.stderr.flush()
@@ -346,8 +347,6 @@
for seg in self.data:
_parjtag.memwrite(seg.startaddress, seg.data)
bytes += len(seg.data)
- if self.showprogess:
- sys.stderr.write("\r")
sys.stderr.write("%i bytes programmed.\n" % bytes)
sys.stderr.flush()
else:
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click