Merge "recovery: Remember the last log position." am: d549616b24
am: 6691dacf56
Change-Id: If020fcbe02e879e96b1b6481c1aae4029785483e
diff --git a/recovery.cpp b/recovery.cpp
index 8c214be..5c60ce6 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -972,8 +972,9 @@
const char* headers[] = { "Select file to view", nullptr };
+ int chosen_item = 0;
while (true) {
- int chosen_item = get_menu_selection(headers, entries, 1, 0, device);
+ chosen_item = get_menu_selection(headers, entries, 1, chosen_item, device);
if (strcmp(entries[chosen_item], "Back") == 0) break;
ui->ShowFile(entries[chosen_item]);