From 379df5b7c1e351f88e243934727c4c59ca039daa Mon Sep 17 00:00:00 2001 From: timecop97 Date: Thu, 15 Aug 2019 14:12:02 +0100 Subject: [PATCH] changed intel Hex gen to use unix line ends --- Bootup Logo/python_logo_converter/img2ts100.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Bootup Logo/python_logo_converter/img2ts100.py b/Bootup Logo/python_logo_converter/img2ts100.py index 8587c7f7..8d8377c1 100644 --- a/Bootup Logo/python_logo_converter/img2ts100.py +++ b/Bootup Logo/python_logo_converter/img2ts100.py @@ -42,8 +42,8 @@ def intel_hex_line(record_type, offset, data): for byte in data: yield "{:02X}".format(byte) - # compute and write checksum (with DOS line ending for compatibility/safety) - yield "{:02X}\r\n".format((((sum(data, # sum data ... + # compute and write checksum (now using unix style line endings for DFU3.45 compatibility + yield "{:02X}\n".format((((sum(data, # sum data ... record_length # ... and other ... + sum(split16(offset)) # ... fields ... + record_type) # ... on line