Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

M117 (Set LCD Message) not handled correctly #10

Closed
Cerbrus opened this issue Dec 12, 2018 · 9 comments
Closed

M117 (Set LCD Message) not handled correctly #10

Cerbrus opened this issue Dec 12, 2018 · 9 comments

Comments

@Cerbrus
Copy link

Cerbrus commented Dec 12, 2018

The terminal commands aren't playing nicely with M117.

When M117 is the first command, like this:
M117 Reporting setting; M503
Then the commands after that aren't executed.

When M117 appears at the end of a chain of commands:
M503; M117 Reporting setting
Then the string passed to M117 is capitalized.

This means that command like these won't work:
M117 Auto Homing; G28; M117 Auto Homing Done;
M117 Centering; G90; G0 Z5; G0 X117.5 Y117.5; G0 Z0; M117 Centered;

@ieatacid
Copy link
Owner

I'll take a look when I get a chance. Probably Saturday at the earliest.

@Cerbrus
Copy link
Author

Cerbrus commented Dec 12, 2018

Thanks for your quick response!

From what I can see, these lines are probably responsible for capitalizing the string.

It looks like there's a blacklist this command may be missing from?

@ieatacid
Copy link
Owner

ieatacid commented Dec 12, 2018

Weird. I copied that function right from OctoPrint, since it isn't public:

https://github.com/foosel/OctoPrint/blob/master/src/octoprint/static/js/app/viewmodels/terminal.js#L349

@Cerbrus
Copy link
Author

Cerbrus commented Dec 12, 2018

Oh, that's interesting. I should have a look at what OctoPrint does when you directly submit the whole command in the terminal.

Maybe it's an OP bug.

@ieatacid
Copy link
Owner

Well, OctoPrint only expects one command at a time so multiple may throw an error or produce some weird output.

ieatacid pushed a commit that referenced this issue Dec 15, 2018
@ieatacid
Copy link
Owner

Try 0.1.6 (your code works for me now)

@Cerbrus
Copy link
Author

Cerbrus commented Dec 15, 2018 via email

@Cerbrus
Copy link
Author

Cerbrus commented Dec 18, 2018

Sorry, I didn't get around to checking this, yet. Probably this evening.

@Cerbrus
Copy link
Author

Cerbrus commented Dec 18, 2018

Yup! Works like a charm! Thanks for the quick fix!

Especially command like:

M117 Moving to 0,0; G90; G0 Z5; G0 X0 Y0; G0 Z0; M117 Moved to 0,0
Work nicely, as the last M117 only gets logged after the move has finished.

For Auto home / ABL (G28 / G29), the last command executes before the system finished the operation, but I assume that's an OctoPrint limitation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants