From 9128630766377f2a424492f5d1fad04fdbaf782d Mon Sep 17 00:00:00 2001
From: Rodrigo L. Rosa <rodrigorosa.LG@gmail.com>
Date: Wed, 29 Jun 2011 13:01:11 -0700
Subject: [PATCH 2/3] fix wrong reference

a counter was reset to an incorrect value. this was no an issue, since the value to which it was set was the same as the one it should have been set to, but this may eventually change.
---
 src/target/dsp5680xx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/target/dsp5680xx.c b/src/target/dsp5680xx.c
index d56f098..08750d2 100644
--- a/src/target/dsp5680xx.c
+++ b/src/target/dsp5680xx.c
@@ -742,7 +742,7 @@ static int dsp5680xx_read(struct target * target, uint32_t address, unsigned siz
   for (unsigned i=0; i<count; i++){
     if(--counter==0){
       dsp5680xx_context.flush = 1;
-      counter = FLUSH_COUNT_FLASH;
+      counter = FLUSH_COUNT_READ_WRITE;
     }
     switch (size){
     case 1:
-- 
1.7.0.4

