Fixed incorrect handling of HEX segment offsets.
Segment offsets were being parsed, but not added to record addresses.
This commit is contained in:
parent
43e35f5e14
commit
6084d44619
3
ihex.c
3
ihex.c
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue