mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-13 02:54:09 +08:00
DataFlash: return number of logs as zero correctly
when we have no file based logs, report no logs :)
This commit is contained in:
@@ -356,7 +356,7 @@ uint16_t DataFlash_File::get_num_logs(void)
|
||||
{
|
||||
uint16_t ret;
|
||||
uint16_t high = find_last_log();
|
||||
for (ret=1; ret<high; ret++) {
|
||||
for (ret=0; ret<high; ret++) {
|
||||
if (_get_log_size(high - ret) <= 0) {
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user