variable_nozzle_prime_direction variable error!
was updating some RatOS macro configurations,,,,using https://rat-os.vercel.app/docs/configuration/macros as a ref..... one variable keeps erroring out (restart failure error message..invalid variable)
than last line "direction' keeps coming back as an invalid variable?
Configuring RatOS Macros | RatOS
RatOS comes with a bunch of flexible predefined macro's that can be customized via variables. In your printer.cfg at the bottom of the Macro's section, you'll notice this:
![No description](https://cdn.answeroverflow.com/1074917595494486046/image.png)
12 Replies
looks like it needs to be uncommented and set to either "forwards" or "backwards" for the macro to function at all
GitHub
RatOS-configuration/macros.cfg at v2.x · Rat-OS/RatOS-configuration
The RatOS modular klipper configuration. Contribute to Rat-OS/RatOS-configuration development by creating an account on GitHub.
I commented it out as it keeps erroring out when I tried to add it. I was changing from prime line to blob. I left it commented out for the sreen cap to show the order of the statments in case it might be part of the issue with it kicking an error state
looks like the same is true in the primeblob https://github.com/Rat-OS/RatOS-configuration/blob/v2.x/macros.cfg#L204
GitHub
RatOS-configuration/macros.cfg at v2.x · Rat-OS/RatOS-configuration
The RatOS modular klipper configuration. Contribute to Rat-OS/RatOS-configuration development by creating an account on GitHub.
forwards, backwards or auto like it says. Yeah.
Yeah you need to quote the string
ie
variable_nozzle_prime_direction: "backwards"
I'm sure you're right but I just don't see it... where does it handle 'auto' ? It looks like the macros themselves only handles forwards/backwards
It doesn't explicitly handle auto, it explicitly handles "backwards" and "forwards". You could call it "unicornfarts" and it would behave the same as "auto". It just needs to be defined.
Ahhhhh, I see it above, handling it during the nozzle_prime_start_y and the section I pointed out just re-sets it if it matches those two options. I just may have to set everything like this to 'unicornfarts' in my settings now though 🤣
much recommended, until i actually start checking for the strings i list in the doc 😂
tnx. Interesting that this variable needs quotes as no others do?
all string variables should be quoted
dooohl! yep 🤪