Changing current with incorrect stepper name causes fatal error

When attempting to change stepper current, if any setting is invalid, perhaps just spit out an error rather than causing the print to fail with a fatal error.

SET_TMC_CURRENT STEPPER=<name> CURRENT=<amps> HOLDCURRENT=<amps>

That is all. I lost a print because I typed “x” instead of “stepper_x”

I know it’s a user error and they should just enter it correctly, but mistakes happen and on large prints it can really suck.

This is discussed in the FAQ at: https://www.klipper3d.org/FAQ.html#why-does-klipper-report-errors-i-lost-my-print. Note that your issue occurs with OctoPrint (it’s actually OctoPrint that cancels the print) and would not occur if using Mainsail or Fluidd (on these interfaces, the error would just be shown to the user and would not cancel an ongoing print).

-Kevin

1 Like