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:
parent
061ebcebe7
commit
778f93f119
1 changed files with 0 additions and 3 deletions
|
@ -535,9 +535,6 @@ int flashfsReadAbs(uint32_t address, uint8_t *buffer, unsigned int len)
|
|||
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
|
||||
flashfsFlushSync();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue