mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-08-30 14:52:51 +08:00
Fix finding makers for text lengths that are not multiples of 4
This commit is contained in:
+1
-1
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user