From ecdd74d580cfae04eb3831b697e42a3ce1edca6d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 11 Mar 2014 17:11:58 +1100 Subject: [PATCH] DataFlash: return number of logs as zero correctly when we have no file based logs, report no logs :) --- libraries/DataFlash/DataFlash_File.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/DataFlash/DataFlash_File.cpp b/libraries/DataFlash/DataFlash_File.cpp index afa60e19b9f..a844004070a 100644 --- a/libraries/DataFlash/DataFlash_File.cpp +++ b/libraries/DataFlash/DataFlash_File.cpp @@ -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