3.5 beta 2 copy paste in Macro
-
I noticed that when I create a macro and copy and paste something, the macro doesn't work.
But if I edit it on the pc and upload it, the same macro works. -
here's an example
I created a macro in the dwc and pasted the code with copy paste.
the macro didn't work and there were many bad comand errors; tune heater 1 and wait for it to finish M303 H1 S210 while heat.heaters[1].state != "standby" && heat.heaters[1].state != "off" G4 S1 ; tune heater 2 and wait for it to finish M303 H2 S210 while heat.heaters[2].state != "standby" && heat.heaters[2].state != "off" G4 S1 ; tuning finished, save parameters to config-override.g M500
I then created an empty editor file in windows, inserted the code with copy paste and uploaded it to the DWC.
then the same code works -
@Proschi78 Can you explain what does not work?
-
@chrishamm I added an example above
-
@Proschi78
Your example doesn't really help replicate the problem.
You will need to create a file using copy/paste that errors.
Run the file and post the errors.
Then create the same file in window.
Then upload them both as attachments.
Don't post the code using the </> button.
That way we can see tabs , line endings etc exactly as they are being executed. -
@Proschi78 I think this is an issue with file line endings. See this thread:
https://forum.duet3d.com/post/307796
Please try the new binary that dc42 posted there.
It appears that the new text editor in DWC 3.5 defaults to CRLF but if the file already uses LF, it sticks with that. That's why you see a difference depending on if it's an existing or new macro.
-
@T3P3Tony Thanks that fixed the problem.
I was already doubting myself
-
@Proschi78 thanks for confirming that fix worked.
-
-