diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-10-15 07:08:18 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-10-15 07:08:18 +0000 |
commit | af41e6aac8d2aadf2bcfc84a77ac0f9ded8e7830 (patch) | |
tree | 4f099159146db6bf95e3f6a65dcd249864e38c0f /src | |
parent | d58229e73bf0fcb0da00c85985dd665fe4593fd4 (diff) | |
download | openocd_libswd-af41e6aac8d2aadf2bcfc84a77ac0f9ded8e7830.tar.gz openocd_libswd-af41e6aac8d2aadf2bcfc84a77ac0f9ded8e7830.tar.bz2 openocd_libswd-af41e6aac8d2aadf2bcfc84a77ac0f9ded8e7830.tar.xz openocd_libswd-af41e6aac8d2aadf2bcfc84a77ac0f9ded8e7830.zip |
김운식 <donari75@gmail.com> spotted a bug in target_write_u8
git-svn-id: svn://svn.berlios.de/openocd/trunk@1063 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r-- | src/target/target.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/target.c b/src/target/target.c index 6a5c8902..5fde4f8f 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -1300,7 +1300,7 @@ int target_write_u8(struct target_s *target, u32 address, u8 value) LOG_DEBUG("address: 0x%8.8x, value: 0x%2.2x", address, value); - if ((retval = target->type->read_memory(target, address, 1, 1, &value)) != ERROR_OK) + if ((retval = target->type->write_memory(target, address, 1, 1, &value)) != ERROR_OK) { LOG_DEBUG("failed: %i", retval); } |