|
|
@ -815,7 +815,7 @@ static bool ee_Write(uint32_t address, uint8_t data) {
|
|
|
|
// Maybe we could coalesce the next block with this block. Let's try to do it!
|
|
|
|
// Maybe we could coalesce the next block with this block. Let's try to do it!
|
|
|
|
uint16_t inext = i + 3 + blen;
|
|
|
|
uint16_t inext = i + 3 + blen;
|
|
|
|
if (inext <= (PageSize - 4) &&
|
|
|
|
if (inext <= (PageSize - 4) &&
|
|
|
|
(buffer[inext] | (uint16_t(buffer[inext + 1]) << 8)) == (baddr + blen + 1)) {
|
|
|
|
(buffer[inext] | uint16_t(buffer[inext + 1] << 8)) == (baddr + blen + 1)) {
|
|
|
|
// YES! ... we can coalesce blocks! . Do it!
|
|
|
|
// YES! ... we can coalesce blocks! . Do it!
|
|
|
|
|
|
|
|
|
|
|
|
// Adjust this block header to include the next one
|
|
|
|
// Adjust this block header to include the next one
|
|
|
|