Skip to content

Commit 1bfd319

Browse files
committed
fix(backend_filesystem): Start from the begining the next time the program is opened
1 parent d2f202b commit 1bfd319

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ardupilot_methodic_configurator/backend_filesystem.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -676,8 +676,8 @@ def get_start_file(self, explicit_index: int, tcal_available: bool) -> str:
676676
start_file_index = last_uploaded_index + 1
677677
if start_file_index >= len(files):
678678
# Handle the case where last_uploaded_filename is the last file in the list
679-
logging_warning(_("Last uploaded file is the last file in the list. Starting from there."))
680-
start_file_index = len(files) - 1
679+
logging_warning(_("Last uploaded file is the last file in the list. Starting from the beginning."))
680+
return start_file
681681
return files[start_file_index]
682682

683683
def backup_fc_parameters_to_file(

0 commit comments

Comments
 (0)