From b0ffb269d2ac8dc19ae6879d80718b8c60ab60de Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Wed, 5 Oct 2022 21:02:28 +0200 Subject: 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 --- docs/Status_Reference.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'docs/Status_Reference.md') diff --git a/docs/Status_Reference.md b/docs/Status_Reference.md index 99d4f0f3..e6595ddb 100644 --- a/docs/Status_Reference.md +++ b/docs/Status_Reference.md @@ -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=` G-Code command. +- `info.current_layer`: The current layer value of the last + `SET_PRINT_STATS_INFO CURRENT_LAYER=` G-Code command. ## probe -- cgit v1.2.3-70-g09d2