Fix finding makers for text lengths that are not multiples of 4

This commit is contained in:
logicog
2025-08-20 10:14:18 +02:00
parent 53a8046874
commit 1caadbe631
+1 -1
View File
@@ -324,7 +324,7 @@ void flash_find_mark(__xdata uint32_t src, register uint16_t len, __code uint8_t
markbuf[i++] = 0; markbuf[i++] = 0;
} }
len -= 4; len -= len >= 4? 4 : len;
uint8_t j = 0; uint8_t j = 0;
k = (i + 13 - l) & 0xf; k = (i + 13 - l) & 0xf;
i &= 0xf; i &= 0xf;