mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-24 23:24:01 -06:00
print_stats: add SET_PRINT_STATS_INFO
G-Code for pass slicer variables to Klipper (#5726)
This adds a gcode command that can be used insight the slicer to pass the total layer count and current layer information. Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
parent
a2482d4f95
commit
b0ffb269d2
3 changed files with 46 additions and 3 deletions
|
@ -330,8 +330,12 @@ The following information is available in the `print_stats` object
|
|||
[virtual_sdcard](Config_Reference.md#virtual_sdcard) config section is
|
||||
defined):
|
||||
- `filename`, `total_duration`, `print_duration`, `filament_used`,
|
||||
`state`, `message`: Estimated information about the current print
|
||||
when a virtual_sdcard print is active.
|
||||
`state`, `message`: Estimated information about the current print when a
|
||||
virtual_sdcard print is active.
|
||||
- `info.total_layer`: The total layer value of the last `SET_PRINT_STATS_INFO
|
||||
TOTAL_LAYER=<value>` G-Code command.
|
||||
- `info.current_layer`: The current layer value of the last
|
||||
`SET_PRINT_STATS_INFO CURRENT_LAYER=<value>` G-Code command.
|
||||
|
||||
## probe
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue