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.
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.