From 4d6ae0a1b2d427a6d699faae93985f72b840a31e Mon Sep 17 00:00:00 2001 From: Allen Ibara Date: Thu, 31 Jan 2013 13:39:41 -0800 Subject: [PATCH] Avoid double increment of dst in adiv5 write bytes function. --- src/adiv5.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/adiv5.c b/src/adiv5.c index 2142527..45bf94f 100644 --- a/src/adiv5.c +++ b/src/adiv5.c @@ -295,7 +295,6 @@ ap_mem_write_bytes(struct target_s *target, uint32_t dest, const uint8_t *src, i adiv5_dp_low_access(ap->dp, ADIV5_LOW_AP, ADIV5_LOW_WRITE, ADIV5_AP_DRW, tmp); - dest ++; /* Check for 10 bit address overflow */ if ((dest ^ odest) & 0xfffffc00) { odest = dest;