1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-13 11:29:58 +03:00

Revert restriction of reading across page boundary (#14015)

This commit is contained in:
Steve Evans 2024-11-10 13:53:22 +00:00 committed by GitHub
parent 061ebcebe7
commit 778f93f119
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -535,9 +535,6 @@ int flashfsReadAbs(uint32_t address, uint8_t *buffer, unsigned int len)
len = flashfsSize - address; len = flashfsSize - address;
} }
// Don't read across a page boundary
len = MIN(len, flashGeometry->pageSize - (address & (flashGeometry->pageSize - 1)));
// Since the read could overlap data in our dirty buffers, force a sync to clear those first // Since the read could overlap data in our dirty buffers, force a sync to clear those first
flashfsFlushSync(); flashfsFlushSync();