Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Binary files not listed with M20 without E3V2 ProUI #24332

Open
1 task done
The-EG opened this issue Jun 11, 2022 · 1 comment
Open
1 task done

[BUG] Binary files not listed with M20 without E3V2 ProUI #24332

The-EG opened this issue Jun 11, 2022 · 1 comment

Comments

@The-EG
Copy link
Contributor

The-EG commented Jun 11, 2022

Did you test the latest bugfix-2.1.x code?

Yes, and the problem still exists.

Bug Description

Sending an M20 or M20 F (with CUSTOM_FIRMWARE_UPLOAD enabled) does not result in *.bin files being listed.

Bug Timeline

Most likely #23878

Expected behavior

*.bin files to be listed when appropriate from M20 and M20 F

Actual behavior

No *.bin files listed.

Steps to Reproduce

  1. Put a firmware *.bin file on an SD card.
  2. Put sdcard into printer
  3. Run M20 F
  4. Observe bin file not listed

Version of Marlin Firmware

Bugfix-2.1.x 2022-06-11

Printer model

Ender 3 Pro

Electronics

v4.2.7 board, CR10_STOCKDISPLAY

Add-ons

No response

Bed Leveling

UBL Bilinear mesh

Your Slicer

Other (explain below)

Host Software

OctoPrint

Don't forget to include

  • A ZIP file containing your Configuration.h and Configuration_adv.h.

Additional information & file uploads

ender3pro.zip

Looking at cardreader.h, fileisBinary and setBinFlag are no-ops unless DO_LIST_BIN_FILES is defined.

  static bool fileIsBinary() { return TERN0(DO_LIST_BIN_FILES, flag.filenameIsBin); }
  static void setBinFlag(const bool bin) { TERN(DO_LIST_BIN_FILES, flag.filenameIsBin = bin, UNUSED(bin)); }

DO_LIST_BIN_FILES is defined in Conditionals_LCD.h:

#if ENABLED(DWIN_LCD_PROUI)
  #define DO_LIST_BIN_FILES 1
#endif

So, fileIsBinary always returns 0. 👎

@The-EG
Copy link
Contributor Author

The-EG commented Jun 11, 2022

As a quick test: chucking a #define DO_LIST_BIN_FILES 1 at the end of Configuration_adv.h causes the bin files to be listed properly.

Also, this causes them to be listed in the Print From Media LCD menu. I'm not sure if that's intended or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants