M20 L updated format and first implementation of timestamp reporting (M20 T) #3113
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
M20 L
format was updated to be in line with the octoprint implementation. Compared to 3.10.0-RC1/2, the size and LFN are swapped. It results in the following output:M20:
M20 L:
The second thing that was fixed in this PR is that
M20 L
no longer enters and exits system/hidden directories, resulting in a cleaner output.Timestamps were implemented as well. They can be obtained by issuing
M20 T
. Both L and T parameters can be used at the same time successfully. The timestamp is a combination of both the date and time into a single integer and printed as a hex.M20 L T:
M20 T:
This is how the hex is generated:
@todo
Update doxygen
Update the reprap gcode documentation
PFW-1236