python-intelhex / intelhex

Python IntelHex library
BSD 3-Clause "New" or "Revised" License
198 stars 106 forks source link

bin2hex.py adds extra random byte #61

Closed odin- closed 1 year ago

odin- commented 1 year ago

I am using bin2hex.py:

bin2hex.py test out.ihex; cat out.ihex :0200000061326B :00000001FF

Note '0x6B'.

Input is two chars in a binary file:

image

Is this expected behaviour?

bialix commented 1 year ago

The last byte is always checksum. See docs.

odin- commented 1 year ago

Oh thanks :-)