FreeCalypso > hg > fc-usbser-tools
diff cp2102/intel_hex_out.c @ 56:842cff427588
cp2102: fix Intel HEX read/write bugs
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 11 Sep 2023 19:52:28 +0000 |
parents | d4d3531d342a |
children |
line wrap: on
line diff
--- a/cp2102/intel_hex_out.c Mon Sep 11 19:45:56 2023 +0000 +++ b/cp2102/intel_hex_out.c Mon Sep 11 19:52:28 2023 +0000 @@ -32,7 +32,7 @@ *dp++ = *sp++; csum = 0; for (bytecnt = 0; bytecnt < 20; bytecnt++) - csum = record[bytecnt]; + csum += record[bytecnt]; csum = 0x100 - csum; record[20] = csum; putc(':', outf);