From 3a422e89092006bd82fc1982bd0fdea50a5ac512 Mon Sep 17 00:00:00 2001 From: vintagepc <53943260+vintagepc@users.noreply.github.com> Date: Sun, 18 Apr 2021 17:46:57 -0400 Subject: [PATCH] Fix #446 - bug in multipart ihex --- simavr/sim/sim_hex.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/simavr/sim/sim_hex.c b/simavr/sim/sim_hex.c index 18047c2..05fd65d 100644 --- a/simavr/sim/sim_hex.c +++ b/simavr/sim/sim_hex.c @@ -132,7 +132,8 @@ read_ihex_chunks( case 0: // normal data addr = segment | (bline[1] << 8) | bline[2]; break; - case 1: // end of file + case 1: // end of file - reset segment + segment = 0; continue; case 2: // extended address 2 bytes segment = ((bline[4] << 8) | bline[5]) << 4; -- 2.39.5