andrivet / ADVi3pp

ADVi3++, an alternative and better firmware for Wanhao i3 Plus printers and clones. Fork of Marlin Firmware.
https://community.advi3pp.com
GNU General Public License v3.0
243 stars 119 forks source link

SD card sorting is not working as expected #332

Closed andrivet closed 1 year ago

andrivet commented 1 year ago

Did you check that your report is not a duplicate?

Yes, I have checked and this is a new bug not previously reported.

Bug Description

Files are not properly sorted. Sometimes, it looks like it is working (depending of the state of the SD card) but in fact it is not. The code to get the date/time of files is wrong.

Expected behavior

Most recent files should appear first.

Actual behavior

The actual behaviour is hard to predict.

Steps to Reproduce

Main screen Print

Version of ADVi3++ Firmware

ADVi3++ 5.6.0

Printer model

Wanhao Duplicator i3 Plus

Mods

No response

Bed Leveling

None

Your Slicer

None

Host Software

None

Additional information & file uploads

presortrelies on write_date and write_time that are not set properly. So the sorting is ineffective.

andrivet commented 1 year ago

Fixed in version 5.7.0