mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-31 21:18:29 -04:00
63910bf8cd
the seek offset of files can get badly mucked up when it crosses cluster boundaries. We need to fix this in NuttX, but meanwhile this works around the bug. It seems that doing a lseek(fd, 0, SEEK_CUR) fixes the seek offset in the file. The bug seems to first happen at an offset of 315392. It also doesn't happen every time - it is more likely to happen on the first log download after booting |
||
---|---|---|
.. | ||
examples/DataFlash_test | ||
DataFlash_APM1.cpp | ||
DataFlash_APM1.h | ||
DataFlash_APM2.cpp | ||
DataFlash_APM2.h | ||
DataFlash_Block.cpp | ||
DataFlash_Block.h | ||
DataFlash_Empty.cpp | ||
DataFlash_Empty.h | ||
DataFlash_File.cpp | ||
DataFlash_File.h | ||
DataFlash_SITL.cpp | ||
DataFlash_SITL.h | ||
DataFlash.h | ||
LogFile.cpp |