Write complete hex file when deivce is erased

This commit is contained in:
Olaf Rempel 2020-02-01 22:00:09 +01:00
parent 9d1fdb5c4c
commit 1d39889818

View File

@ -457,6 +457,12 @@ static int hexfile_write(const char *filename, struct databuf *dbuf)
}
}
if (addr_min >= addr_max)
{
addr_min = 0;
addr_max = dbuf->length;
}
addr_min = addr_min & ~0x0F;
addr_max = (addr_max + 0x0F) & ~0x0F;