aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodrigo L. Rosa <rodrigorosa.LG@gmail.com>2011-08-05 11:40:05 -0700
committerRodrigo L. Rosa <rodrigorosa.LG@gmail.com>2011-08-10 13:08:14 -0700
commit7675db7e92bff595dbddce1f7b5f1181424522f2 (patch)
treefe2ca6d7c53c0c9797cebd40d0ca011a9ae5e6f3
parent67f1f0c7b57b4dc25f2c54af2e6f8fe29a899548 (diff)
fix return code from dsp5680xx_read
it returned ERROR_OK even though it actually failed. this made the Tcl interface report success, though it had not succeeded.
-rw-r--r--src/target/dsp5680xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/dsp5680xx.c b/src/target/dsp5680xx.c
index e5984238..c25eabf6 100644
--- a/src/target/dsp5680xx.c
+++ b/src/target/dsp5680xx.c
@@ -726,7 +726,7 @@ static int dsp5680xx_read_32_single(struct target * target, uint32_t address, ui
static int dsp5680xx_read(struct target * target, uint32_t address, unsigned size, unsigned count, uint8_t * buffer){
if(target->state != TARGET_HALTED){
LOG_USER("Target must be halted.");
- return ERROR_OK;
+ return ERROR_FAIL;
}
int retval = ERROR_OK;
int pmem = 1;