moggieuk / Happy-Hare

MMU software driver for Klipper (ERCF, Tradrack, Box Turtle, Night Owl, Angry Beaver, 3MS, ...)
GNU General Public License v3.0
495 stars 125 forks source link

Malformed command 'SAVE_VARIABLE VARIABLE=mmu_state_gate_material #125

Open Raabi91 opened 10 months ago

Raabi91 commented 10 months ago

since the last update i always get the error when starting klipper

Malformed command 'SAVE_VARIABLE VARIABLE=mmu_state_gate_material VALUE='["'ASA'", "'ABS+'", "'PETG'", "'PETG'", "''", "'ABS Ca'"]'

the problem is the "ABS Ca" which i have actually set to abs. if i set it to abs again. the command goes but after a firmware restart it is automatically set to "ABS Ca" again

moggieuk commented 10 months ago

Somehow, it has been persisted incorrectly. If you edit mmu_vars.cfg you can fix and not have it reset.

Couple of questions:

  1. Do yu have spoolman integration enabled?
  2. Can you attach your mmu_vars.cfg file. It's in printer_data/config/mmu/ directory.

I was able to recreate -- very interesting. Seems to be a klipper parsing quirk with a space in the material name. I'll look into it, but editing it out of mmu_vars.cfg will fix for now.

Raabi91 commented 10 months ago

Problem is gone since the last updates. now everything works again as before

Spoolman is active yes

in the mm_vars.cfg the values were also like this at this time now is it normal

this was the old cfg

mmu_vars.cfg.txt

The only problem was that no matter what I changed at the time it was not saved and I never entered ABS Ca, only ABS+ at the time. Now it says abs+ again without me having changed anything.

what i found out is that the error only came because of the space in "'ABS Ca'".