1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +03:00

Minor fix for flushing behaviour on dataflash

This commit is contained in:
Nicholas Sherlock 2015-02-16 22:20:53 +13:00
parent d628bc6dcd
commit 5f29eed017
5 changed files with 25 additions and 30 deletions

View file

@ -555,6 +555,7 @@ bool flashfsIsEOF() {
*/
void flashfsInit()
{
// If we have a flash chip present at all
if (flashfsGetSize() > 0) {
// Start the file pointer off at the beginning of free space so caller can start writing immediately
flashfsSeekAbs(flashfsIdentifyStartOfFreeSpace());