X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2FGoodFET.py;h=af24201cbcd74b8db97c041bdc157678e7487484;hp=43c0ca62a8117a57e807cf96a3bbe244c909e2a3;hb=1706a7f4cfa73ed716b56f5b0322bfb67b560ade;hpb=de633a9731ff7181ba4ef8afa288e57b5456598d diff --git a/client/GoodFET.py b/client/GoodFET.py index 43c0ca6..af24201 100755 --- a/client/GoodFET.py +++ b/client/GoodFET.py @@ -48,7 +48,7 @@ class GoodFET: print "Verb %02x is wrong. Incorrect firmware?" % self.verb; #print "Connected." def getbuffer(self,size=0x1c00): - writecmd(0,0xC2,[size&0xFF,(size>>16)&&0xFF]); + writecmd(0,0xC2,[size&0xFF,(size>>16)&0xFF]); print "Got %02x%02x buffer size." % (self.data[1],self.data[0]); def writecmd(self, app, verb, count=0, data=[], blocks=1): """Write a command and some data to the GoodFET."""