diff options
author | Arkadiusz MiĆkiewicz <arekm@maven.pl> | 2022-08-26 00:37:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-26 00:37:44 +0300 |
commit | bf2015da6777c385716e94a416e48b8e27656261 (patch) | |
tree | 1e3cf61a33ecaa25443eb7ae1ef6f2388ef67f8a /_gcode | |
parent | a13af4f0105bdc78caace1aa3c40cf58256e387f (diff) |
'M20 T' Timestamp flag (and 'F' too) (#464)
MarlinFirmware/Marlin#24679
Diffstat (limited to '_gcode')
-rw-r--r-- | _gcode/M020.md | 43 |
1 files changed, 39 insertions, 4 deletions
diff --git a/_gcode/M020.md b/_gcode/M020.md index 9047df00..24ddef56 100644 --- a/_gcode/M020.md +++ b/_gcode/M020.md @@ -15,6 +15,15 @@ notes: parameters: - + tag: F + since: 2.0.9.4 + optional: true + description: Only list BIN files. Used by host plugins to facilitate firmware upload. + requires: CUSTOM_FIRMWARE_UPLOAD + values: + - + type: flag + - tag: L since: 2.0.9 experimental: true @@ -24,6 +33,15 @@ parameters: values: - type: flag + - + tag: T + since: 2.1.2 + optional: true + description: Include the file timestamp in the listing. + requires: M20_TIMESTAMP_SUPPORT + values: + - + type: flag examples: - @@ -32,8 +50,8 @@ examples: code: | > M20 Begin file list - myfile.gco 14129 - subdir/moreth\~1.gco 68447 + MYFILE.GCO 14129 + SUBDIR~1/MORETH\~1.GCO 68447 End file list ok - @@ -42,8 +60,25 @@ examples: code: | > M20 L Begin file list - myfile.gco 14129 MyFile.gcode - sub_di\~1/moreth\~1.gco 68447 Sub\ Directory/MoretHall.gcode + MYFILE.GCO 14129 MyFile.gcode + SUBDIR~1/MORETH\~1.GCO 68447 Sub Directory/MoretHall.gcode + End file list + ok + - + pre: List files with file modification timestamp (for display) + post: OctoPrint 1.9+ uses the timestamp to display file upload times. + code: | + > M20 T + Begin file list + MYFILE.GCO 14129 0x5515758F + SUBDIR~1/MORETH\~1.GCO 68447 0x55195745 + End file list + ok + + > M20 L T + Begin file list + MYFILE.GCO 14129 0x5515758F MyFile.gcode + SUBDIR~1/MORETH\~1.GCO 68447 0x55195745 Sub Directory/MoretHall.gcode End file list ok |