Browse Source

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.
tags/v0.6.0-rc1
Rodrigo L. Rosa 12 years ago
parent
commit
7675db7e92
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/target/dsp5680xx.c

+ 1
- 1
src/target/dsp5680xx.c View File

@@ -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;


Loading…
Cancel
Save