Skip to content

Commit

Permalink
Fix finding latest gcode
Browse files Browse the repository at this point in the history
Remember temporaty newest time while checking other files
  • Loading branch information
MistrKernnunos committed Dec 6, 2022
1 parent 6080b7d commit 4e4a927
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/screen_home.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ static bool find_latest_gcode(char *fpath, int fpath_len, char *fname, int fname
if (is_newer) {
strlcpy(fpath + 5, dir.fno->d_name, fpath_len - 5);
strlcpy(fname, dir.fno->lfn, fname_len);
latest_time = dir.fno->time;
}
}

Expand Down

0 comments on commit 4e4a927

Please sign in to comment.