vdudouyt / stm8flash

program your stm8 devices with SWIM/stlinkv(1,2)
GNU General Public License v2.0
402 stars 182 forks source link

Fix verify using intel hex format. #84

Closed welash closed 6 years ago

welash commented 6 years ago

This is a fix for issue #81. It was verified by the reporter of the issue.

The problem was that when reading the hex file, it was being read into "buf" instead of "buf2". the intention was that buf would contain the data read from the chip, and buf2 would be the data from the file. Instead, we were overwriting the data from the chip with the data from the file, and then comparing that to an uninitialized buffer.