MNieddu91 / Marlin-AI3M-BLTouch

Marlin firmware optimized for the Anycubic i3 Mega 3D printer
GNU General Public License v3.0
94 stars 28 forks source link

[BUG] SD filenames beginning with END cause list display problems #31

Open rwb1012 opened 2 years ago

rwb1012 commented 2 years ago

I had a printfile named "endcap.gcode". When it was copied to the SD card and inserted in Anycubic Mega-S that file and other files don't display. All files are OK on any computer and M20 reports the correct list.

If I change the file name to "emdcap.gcode" ('n' to 'm'), the SD card list displays correctly. Any file starting with "end" causes the problem.

I suspect that "END" is used to mark the end of the SD file list and the compare/search only uses the first 3 characters

To Reproduce Steps to reproduce the behavior:

Rename any gcode file to "endcap.gcode"

Expected behavior SD file list to display correctly in full (match M20 output).

Printer (please complete the following information):

Firmware version: Anycubic i3 Mega Marlin (BLTouch) 1.1.9 by davidramiro & MNieddu91 - Marlin-AI3M v1.4.6
Printing method: SD
Model: Anycubic Mega-S. Trigorilla v1.1.

M503 Output

echo: G21 ; (mm) echo:Filament settings: Disabled echo: M200 D1.75 echo: M200 D0 echo:Steps per unit: echo: M92 X80.00 Y80.00 Z400.00 E400.00 echo:Maximum feedrates (units/s): echo: M203 X500.00 Y500.00 Z6.00 E30.00 echo:Maximum Acceleration (units/s2): echo: M201 X3000 Y2000 Z60 E10000 echo:Acceleration (units/s2): P R T echo: M204 P1500.00 R1500.00 T3000.00 echo:Advanced: Q S T X Y Z E echo: M205 Q20000 S0.00 T0.00 X10.00 Y10.00 Z0.40 E5.00 echo:Home offset: echo: M206 X0.00 Y0.00 Z0.00 echo:Auto Bed Leveling: echo: M420 S1 Z0.00 echo: G29 W I0 J0 Z0.06500 echo: G29 W I1 J0 Z0.21750 echo: G29 W I2 J0 Z0.29000 echo: G29 W I3 J0 Z0.28750 echo: G29 W I4 J0 Z0.24000 echo: G29 W I5 J0 Z0.14750 echo: G29 W I6 J0 Z0.01750 echo: G29 W I0 J1 Z0.05250 echo: G29 W I1 J1 Z0.20000 echo: G29 W I2 J1 Z0.26750 echo: G29 W I3 J1 Z0.28250 echo: G29 W I4 J1 Z0.24500 echo: G29 W I5 J1 Z0.15250 echo: G29 W I6 J1 Z0.03250 echo: G29 W I0 J2 Z0.04250 echo: G29 W I1 J2 Z0.17750 echo: G29 W I2 J2 Z0.27750 echo: G29 W I3 J2 Z0.31250 echo: G29 W I4 J2 Z0.25750 echo: G29 W I5 J2 Z0.16000 echo: G29 W I6 J2 Z0.03750 echo: G29 W I0 J3 Z0.03000 echo: G29 W I1 J3 Z0.19000 echo: G29 W I2 J3 Z0.27000 echo: G29 W I3 J3 Z0.30750 echo: G29 W I4 J3 Z0.24250 echo: G29 W I5 J3 Z0.16250 echo: G29 W I6 J3 Z0.06250 echo: G29 W I0 J4 Z0.04750 echo: G29 W I1 J4 Z0.19750 echo: G29 W I2 J4 Z0.27750 echo: G29 W I3 J4 Z0.31500 echo: G29 W I4 J4 Z0.28500 echo: G29 W I5 J4 Z0.19250 echo: G29 W I6 J4 Z0.08250 echo: G29 W I0 J5 Z0.00750 echo: G29 W I1 J5 Z0.20000 echo: G29 W I2 J5 Z0.28500 echo: G29 W I3 J5 Z0.32750 echo: G29 W I4 J5 Z0.31250 echo: G29 W I5 J5 Z0.20500 echo: G29 W I6 J5 Z0.10000 echo: G29 W I0 J6 Z0.02000 echo: G29 W I1 J6 Z0.21250 echo: G29 W I2 J6 Z0.30500 echo: G29 W I3 J6 Z0.34750 echo: G29 W I4 J6 Z0.32750 echo: G29 W I5 J6 Z0.24250 echo: G29 W I6 J6 Z0.14500 echo:Endstop adjustment: echo: M666 Z0.00 echo:PID settings: echo: M301 P15.94 I1.17 D54.19 echo: M304 P251.78 I49.57 D319.73 echo:Z-Probe Offset (mm): echo: M851 Z-2.20 echo:Linear Advance: echo: M900 K0.00 echo:Filament load/unload lengths: echo: M603 L538.00 U555.00