Merge pull request #1634 from stefanrueger/one-byte-flash-files

Fix upload of one-byte files to flash
This commit is contained in:
Stefan Rueger
2024-01-29 12:14:43 +13:00
committed by GitHub

View File

@@ -308,7 +308,7 @@ int avr_mem_hiaddr(const AVRMEM * mem)
/* return the highest non-0xff address regardless of how much
memory was read */
for (i=mem->size-1; i>0; i--) {
for (i = mem->size-1; i >= 0; i--) {
if (mem->buf[i] != 0xff) {
n = i+1;
if (n & 0x01)