From af41e6aac8d2aadf2bcfc84a77ac0f9ded8e7830 Mon Sep 17 00:00:00 2001 From: oharboe Date: Wed, 15 Oct 2008 07:08:18 +0000 Subject: [PATCH] =?utf8?q?=EA=B9=80=EC=9A=B4=EC=8B=9D=20=20spotted=20a=20bug=20in=20target=5Fwrite=5Fu8?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.berlios.de/openocd/trunk@1063 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/target/target.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.5