mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
changed intel Hex gen to use unix line ends
This commit is contained in:
@@ -42,8 +42,8 @@ def intel_hex_line(record_type, offset, data):
|
|||||||
for byte in data:
|
for byte in data:
|
||||||
yield "{:02X}".format(byte)
|
yield "{:02X}".format(byte)
|
||||||
|
|
||||||
# compute and write checksum (with DOS line ending for compatibility/safety)
|
# compute and write checksum (now using unix style line endings for DFU3.45 compatibility
|
||||||
yield "{:02X}\r\n".format((((sum(data, # sum data ...
|
yield "{:02X}\n".format((((sum(data, # sum data ...
|
||||||
record_length # ... and other ...
|
record_length # ... and other ...
|
||||||
+ sum(split16(offset)) # ... fields ...
|
+ sum(split16(offset)) # ... fields ...
|
||||||
+ record_type) # ... on line
|
+ record_type) # ... on line
|
||||||
|
|||||||
Reference in New Issue
Block a user