M291 now fails in macro when concentating parameter value
-
Hi,
just installed 3.5.1, running in SBC mode. I have a custom macro for handling filament load/unload, and I pass in the desired temperature as a parameter with name K. E.g.
M98 P"0:/macros/03-Filament_Handling/00-Load_Filament" K215 ; execute macro to load and purge filament
As of 3.5.1, I'm now getting an error when popping up a display message that uses that parameter:
if exists(param.K) M291 P"Please wait while the nozzle is being heated up" R"Heating: " ^ {param.K} ^ "°C" S1 T5; display message ....
I get a red error popup on the web page saying "invalid character '^' on line 17"
Line 17 is the M291 call.
-
Try this
M291 P"Please wait while the nozzle is being heated up" R{"Heating: " ^ param.K ^ "°C"} S1 T5
The parameter is looking for a quoted string which it will see as having been completed at the second set of parentheses.
Most parameters that use variable etc must be enclosed in curly braces to ensure they are evaluated correctly -
@OwenD Cool beans. Will try that.