DataFlash: fixed display of last page of flash logs

This commit is contained in:
Andrew Tridgell 2013-10-02 18:51:02 +10:00
parent 89f121ea77
commit 99a8ba4634
1 changed files with 1 additions and 1 deletions

View File

@ -443,7 +443,7 @@ void DataFlash_Block::LogReadProcess(uint16_t log_num,
}
uint16_t new_page = GetPage();
if (new_page != page) {
if (new_page == end_page || new_page == start_page) {
if (new_page == end_page+1 || new_page == start_page) {
return;
}
page = new_page;