X-Git-Url: http://git.rot13.org//?a=blobdiff_plain;f=client%2Fgoodfet.spiflash;h=b7cec4bc688cdfbb891d3429993412b5d4e50499;hb=78f4f21969789bec27a8e2957eb00a87d8756041;hp=55a7b12e3a06a44742763dc8d3ab99174281293c;hpb=f110fe63257686b9fcac78824d61ec429c2a5226;p=goodfet diff --git a/client/goodfet.spiflash b/client/goodfet.spiflash index 55a7b12..b7cec4b 100755 --- a/client/goodfet.spiflash +++ b/client/goodfet.spiflash @@ -141,9 +141,9 @@ if(sys.argv[1]=="flash"): chars=list(file.read()); #N.B., chunksize must be an even fraction of 0x100. - chunksize=0x100; + #Increasing above 0x200 doesn't help, 0x100 might be good enough. + chunksize=0x200; - #client.silent(1); while i<=stop: bytes=range(0,chunksize); for j in range(0,chunksize): @@ -153,8 +153,8 @@ if(sys.argv[1]=="flash"): i+=chunksize; if(i%0x1000==0): print "Flashed %06x."%i; - print "Done, ending silence."; - #client.silent(0); + + file.close()