From: travisutk Date: Mon, 1 Feb 2010 07:47:41 +0000 (+0000) Subject: Bytes on page boundaries were corrupted. X-Git-Url: http://git.rot13.org/?p=goodfet;a=commitdiff_plain;h=74aafc7c7bd2cfb7c355d170b9d3a548dfa8e0c1;ds=sidebyside Bytes on page boundaries were corrupted. Chipcon only. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@295 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- diff --git a/client/goodfet.cc b/client/goodfet.cc index 52eb1dd..19a0b13 100755 --- a/client/goodfet.cc +++ b/client/goodfet.cc @@ -150,13 +150,10 @@ if(sys.argv[1]=="flash"): bcount = 0; - print "Wiping Flash." - #Wipe all of flash. - #client.CCchiperase(); #Wipe the RAM buffer for the next flash page. client.CCeraseflashbuffer(); for i in h._buf.keys(): - while(i>page+pagelen): + while(i>=page+pagelen): if bcount>0: client.CCflashpage(page); #client.CCeraseflashbuffer();