X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=client%2FGoodFETMAXUSB.py;h=a6bc6fa5e228fea03cdf99df4f959ed6d1e18d22;hb=45b238c82383c390657cdf1be8b9c64b7214dc94;hp=30fb06e430b05a66f9f864f5c4a30cf212222337;hpb=35580fd76085fbc1c80000097cbd72e34ad5edee;p=goodfet diff --git a/client/GoodFETMAXUSB.py b/client/GoodFETMAXUSB.py index 30fb06e..a6bc6fa 100644 --- a/client/GoodFETMAXUSB.py +++ b/client/GoodFETMAXUSB.py @@ -318,9 +318,11 @@ class GoodFETMAXUSB(GoodFET): #Very innefficient, move this to C if performance is needed. for j in range(0,pktsize): self.xfrdata=self.xfrdata+[self.rreg(rRCVFIFO)]; + xfrsize=self.xfrdata[0]; self.wreg(rHIRQ,bmRCVDAVIRQ); #Clear IRQ xfrlen=xfrlen+pktsize; #Add byte count to total transfer length. + print "%i / %i" % (xfrlen,xfrsize) #Packet is complete if: # 1. The device sent a short packet, 0: toret=toret+chr(c); return toret;