Skip to content

The first M20 done on connection is missing the L flag. #4493

Closed
@nophead

Description

The problem

With the latest version of Marlin with Cap:EXTENDED_M20:1 the first display of the file list after connection does not show long filenames but refreshing the list does. The first M20 command that is sent immediately after the M115 does not have the L parameter but subsequent ones do.

It looks like the M20 command is built and added to the send queue before the results from the M115 have been parsed and the EXTENDED_M20 capability set.

Did the issue persist even in safe mode?

Yes, it did persist

If you could not test in safe mode, please state why

No response

Version of OctoPrint

OctoPrint 1.7.3 Python 3.7.3

Operating system running OctoPrint

OctoPi 0.18.0

Printer model & used firmware incl. version

Mendel90

Browser and version of browser, operating system running browser

Chrome on Win7 64.

Checklist of files to include below

  • Systeminfo Bundle (always include!)
  • Contents of the JavaScript browser console (always include in cases of issues with the user interface)
  • Screenshots and/or videos showing the problem (always include in case of issues with the user interface)
  • GCODE file with which to reproduce (always include in case of issues with GCODE analysis or printing behaviour)

Additional information & file uploads

octoprint-systeminfo-20220422153035.zip

Recv: Cap:SERIAL_XON_XOFF:0
Recv: Cap:BINARY_FILE_TRANSFER:0
Recv: Cap:EEPROM:1
Recv: Cap:VOLUMETRIC:1
Recv: Cap:AUTOREPORT_POS:0
Recv: Cap:AUTOREPORT_TEMP:1
Recv: Cap:PROGRESS:0
Recv: Cap:PRINT_JOB:1
Recv: Cap:AUTOLEVEL:0
Recv: Cap:RUNOUT:0
Recv: Cap:Z_PROBE:0
Recv: Cap:LEVELING_DATA:0
Recv: Cap:BUILD_PERCENT:0
Recv: Cap:SOFTWARE_POWER:0
Recv: Cap:TOGGLE_LIGHTS:0
Recv: Cap:CASE_LIGHT_BRIGHTNESS:0
Recv: Cap:EMERGENCY_PARSER:1
Recv: Cap:HOST_ACTION_COMMANDS:0

---------------------------------------------------------------------------
Your printer's firmware supports host action commands, but they are
disabled. The firmware will not inform OctoPrint about job pause &
cancellations, filament runouts, and similar firmware-side events. If you
want this functionality, you need to change your firmware's configuration.

Learn more at https://faq.octoprint.org/warning-firmware-hostcommands
---------------------------------------------------------------------------


Recv: Cap:PROMPT_SUPPORT:0
Recv: Cap:SDCARD:1
Recv: Cap:MULTI_VOLUME:0
Recv: Cap:REPEAT:0
Recv: Cap:SD_WRITE:1
Recv: Cap:AUTOREPORT_SD_STATUS:0
Recv: Cap:LONG_FILENAME:1
Recv: Cap:LFN_WRITE:1
Recv: Cap:CUSTOM_FIRMWARE_UPLOAD:0
Recv: Cap:EXTENDED_M20:1
Recv: Cap:THERMAL_PROTECTION:1
Recv: Cap:MOTION_MODES:0
Recv: Cap:ARCS:1
Recv: Cap:BABYSTEPPING:0
Recv: Cap:CHAMBER_TEMPERATURE:0
Recv: Cap:COOLER_TEMPERATURE:0
Recv: Cap:MEATPACK:0
Recv: Cap:CONFIG_EXPORT:0
Recv: ok
Send: M20
Recv: Begin file list
Recv: TOPCAP_E.G 1099868
Recv: USB_CA~1.GCO 511242
Recv: LOWERB~1.G 3668226
Recv: End file list
Recv: ok
Send: M155 S2
Recv: ok
[...]
Send: M20 L
Recv: Begin file list
Recv: TOPCAP_E.G 1099868 TOPCAP_E.G
Recv: USB_CA~1.GCO 511242 USB_CA~1.GCO
Recv: LOWERB~1.G 3668226 lowerbrkt_export.g
Recv: End file list
Recv: ok
[...]

Metadata

Assignees

No one assigned

    Labels

    bugIssue describes a bugdoneDone but not yet released

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions