X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2Fgoodfet.spiflash;h=d4450c26d9068a6db9b18e2409945b19fc8c87b3;hp=b7cec4bc688cdfbb891d3429993412b5d4e50499;hb=15750ecb20e3f348c419f0666452534c8b6a0b8e;hpb=25e355b9e50cee54081024c581501757e7c33b5d diff --git a/client/goodfet.spiflash b/client/goodfet.spiflash index b7cec4b..d4450c2 100755 --- a/client/goodfet.spiflash +++ b/client/goodfet.spiflash @@ -111,16 +111,21 @@ if(sys.argv[1]=="verify"): file = open(f, mode='rb') i=start; - bits=0; + bytes=0; while i<=stop: - data=client.SPIpeekblock(i,255); + data=client.SPIpeekblock(i); print "Verified %06x." % i; for j in data: if i