From 6084d44619eb9f01ec37814e6e59297fdb78affe Mon Sep 17 00:00:00 2001 From: Daniel Beer Date: Thu, 21 Oct 2010 09:39:27 +1300 Subject: [PATCH] Fixed incorrect handling of HEX segment offsets. Segment offsets were being parsed, but not added to record addresses. --- ihex.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ihex.c b/ihex.c index e41ee89..206fc33 100644 --- a/ihex.c +++ b/ihex.c @@ -60,7 +60,8 @@ static int feed_line(FILE *in, uint8_t *data, int nbytes, binfile_imgcb_t cb, switch (type) { case 0: - return cb(user_data, address, payload, data_len); + return cb(user_data, address + *segment_offset, + payload, data_len); case 1: case 3: