X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=client%2FGoodFETMAXUSB.py;h=a6bc6fa5e228fea03cdf99df4f959ed6d1e18d22;hb=60c3c89f25870849e5c64dd415429822f483bc3f;hp=2559eb91504b44a831e8d5f14847434db06519f1;hpb=4d946fbe1f007d6d44960ed38784593ae64d603d;p=goodfet diff --git a/client/GoodFETMAXUSB.py b/client/GoodFETMAXUSB.py index 2559eb9..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;