From 74aafc7c7bd2cfb7c355d170b9d3a548dfa8e0c1 Mon Sep 17 00:00:00 2001 From: travisutk Date: Mon, 1 Feb 2010 07:47:41 +0000 Subject: [PATCH] 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 --- client/goodfet.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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(); -- 2.20.1