From 22e528f70d85da6d7294dde4d542bd949b6b0c49 Mon Sep 17 00:00:00 2001 From: consp Date: Fri, 14 Jun 2024 19:39:36 +0200 Subject: [PATCH] SAVE_INPUT_SHAPER is not a valid command, SET_INPUT_SHAPER is. See https://www.klipper3d.org/G-Codes.html?h=set_input_shaper#set_input_shaper --- src/inputshaper_panel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inputshaper_panel.cpp b/src/inputshaper_panel.cpp index fd9bbc9..799bf60 100644 --- a/src/inputshaper_panel.cpp +++ b/src/inputshaper_panel.cpp @@ -342,7 +342,7 @@ void InputShaperPanel::handle_callback(lv_event_t *event) { char ybuf[10]; lv_dropdown_get_selected_str(yshaper_dd, ybuf, sizeof(ybuf)); - ws.gcode_script(fmt::format("SAVE_INPUT_SHAPER SHAPER_FREQ_X={} SHAPER_TYPE_X={} SHAPER_FREQ_Y={} SHAPER_TYPE_Y={}\nSAVE_CONFIG", + ws.gcode_script(fmt::format("SET_INPUT_SHAPER SHAPER_FREQ_X={} SHAPER_TYPE_X={} SHAPER_FREQ_Y={} SHAPER_TYPE_Y={}\nSAVE_CONFIG", xhz, xbuf, yhz, ybuf)); } else if (btn == back_btn.get_container()) {