Fixed incorrect handling of HEX segment offsets.

Segment offsets were being parsed, but not added to record addresses.
This commit is contained in:
Daniel Beer 2010-10-21 09:39:27 +13:00
parent 43e35f5e14
commit 6084d44619
1 changed files with 2 additions and 1 deletions

3
ihex.c
View File

@ -60,7 +60,8 @@ static int feed_line(FILE *in, uint8_t *data, int nbytes, binfile_imgcb_t cb,
switch (type) { switch (type) {
case 0: case 0:
return cb(user_data, address, payload, data_len); return cb(user_data, address + *segment_offset,
payload, data_len);
case 1: case 1:
case 3: case 3: