Desuuuu / Marlin

Optimized firmware for RepRap 3D printers based on the Arduino platform. Modified with a new DWIN T5UID1 touchscreen implementation.
GNU General Public License v3.0
31 stars 10 forks source link

[BUG] (Sd contents and folder name) #15

Closed DaGr70 closed 3 years ago

DaGr70 commented 3 years ago

Bug Description

Hi, I forked your version of Marlin include Dgus screen compatibilies from : Desuuuu/Marlin (Thanks for your great job) My repository is available here Thghca pull me somes issues and I meet similar issues with my version of firmware.

In resume :

No issue with 4 files on sdcard and short folder names.

Thanks .

My Configurations

Configuration_files.zip

Steps to Reproduce

  1. put only one file on sd card [or]
  2. put one folder with long name (> 8 character) [or]
  3. put one folder with name include "space" character

Expected behavior: [What you expect to happen] Different icon for folder and file names All file could be selected All foderl could be opened

Actual behavior: [What actually happens]

Can't select file folder don't be reconized by firmware

Additional Information

Can be added if necessay, but it seems easy to reach issue

Desuuuu commented 3 years ago

I'm pretty sure the issue you're facing comes from your modifications and is irrelevant here.

Anyway, it's happening because in order to enable/disable controls in certain situations the firmware has to know on which screen they are and at which index they are stored in the screen firmware (this information can be found in the left panel of DGUS Tool).

If you've messed with how the controls are ordered, the firmware will disable the wrong control since it is selected based on its index.

You have two solutions:

Regarding long folders, this is controlled by Marlin not by my code. You can try enabling LONG_FILENAME_HOST_SUPPORT to see if it makes a difference.

DaGr70 commented 3 years ago

Thanks Dessuuu for your feedback. In fact my screen firmware index information was different. DGUS tool change them when I save projet with screen rotation. I'll try your proposals to solve my issue.

Have a nice Day