Ardupilot2/libraries/DataFlash
Peter Barker 844f050cf3 DataFlash: correct zero-byte-file handling in CLI
-rw-rw-r-- 1 pbarker pbarker   2105344 Jul  1 16:10 1.BIN
-rw-rw-r-- 1 pbarker pbarker         0 Jul  1 19:35 2.BIN
-rw-rw-r-- 1 pbarker pbarker   2494464 Jul  1 16:58 3.BIN
-rw-rw-r-- 1 pbarker pbarker 128503808 Jul  1 20:22 4.BIN
-rw-rw-r-- 1 pbarker pbarker         3 Jul  1 19:46 LASTLOG.TXT

Before fix:

2 logs
Log 3 in logs/3.BIN of size 2494464 2015/7/1 6:58
Log 4 in logs/4.BIN of size 128503808 2015/7/1 10:22

After Fix:

4 logs
Log 1 in logs/1.BIN of size 2105344 2015/7/1 6:10
Log 2 in logs/2.BIN of size 0 2015/7/1 9:35
Log 3 in logs/3.BIN of size 2494464 2015/7/1 6:58
Log 4 in logs/4.BIN of size 128503808 2015/7/1 10:22

If the last file was zero bytes, no files would be shown.
2015-07-02 08:53:18 +10:00
..
examples/DataFlash_test DataFlash: convert example from .pde to .cpp 2015-06-01 17:07:07 +10:00
DataFlash_APM1.cpp DataFlash: backend/frontend split 2015-06-26 16:02:50 +10:00
DataFlash_APM1.h DataFlash: backend/frontend split 2015-06-26 16:02:50 +10:00
DataFlash_APM2.cpp DataFlash: backend/frontend split 2015-06-26 16:02:50 +10:00
DataFlash_APM2.h DataFlash: backend/frontend split 2015-06-26 16:02:50 +10:00
DataFlash_Backend.h DataFlash: method to flush ringbuffer to fd 2015-06-30 16:19:22 +10:00
DataFlash_Block.cpp DataFlash: added error checking and fixed a warning 2015-05-30 22:16:22 +10:00
DataFlash_Block.h DataFlash: backend/frontend split 2015-06-26 16:02:50 +10:00
DataFlash_Empty.cpp DataFlash: backend/frontend split 2015-06-26 16:02:50 +10:00
DataFlash_Empty.h DataFlash: backend/frontend split 2015-06-26 16:02:50 +10:00
DataFlash_File.cpp DataFlash: correct zero-byte-file handling in CLI 2015-07-02 08:53:18 +10:00
DataFlash_File.h DataFlash: correct zero-byte-file handling in CLI 2015-07-02 08:53:18 +10:00
DataFlash_SITL.cpp DataFlash: backend/frontend split 2015-06-26 16:02:50 +10:00
DataFlash_SITL.h DataFlash: backend/frontend split 2015-06-26 16:02:50 +10:00
DataFlash.cpp DataFlash: method to flush ringbuffer to fd 2015-06-30 16:19:22 +10:00
DataFlash.h DataFlash: pull out common mission logging code 2015-06-30 16:23:35 +10:00
LogFile.cpp DataFlash: pull out common mission logging code 2015-06-30 16:23:35 +10:00