"Compress G Code?" option incompatible with Smoothie switch reading?

41 views
Skip to first unread message

Lance Endres

unread,
Mar 18, 2021, 8:56:49 AM3/18/21
to OpenPnP
When using the GCodeAsychDriver and the "Compress G Code?" option, I've run into an issue trying to read the value of the mosfets (configured as a "switch" module) on the Smoothieboard.

The only way I've found to read the mosfet value is to issue the command: "switch name"
In this example your configuration file would look like "switch.name.enabled  true" ...

The "Compress G Code?" option eats the space and instead sends: "switchname"

Uncheck the "Compress G Code?" option and everything works, I am able to issue the command and read the result so I am reasonable sure this is the issue.

I realize this is something of a contradiction, asking to compress the G code but leave this one space.  I was hoping that perhaps there was a way to force the space (like "\ " in LaTeK), interpret as a literal (like @"c:\temp" is C#), or similar method to make this work.  Or perhaps there's another way to read the Smoothieboard value?

Thanks,
Lance

ma...@makr.zone

unread,
Mar 18, 2021, 10:53:12 AM3/18/21
to ope...@googlegroups.com

> I was hoping that perhaps there was a way to force the space (like "\ " in LaTeK),

Yes:

I guess space would be \u0020

_Mark

--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/4d749049-1c97-4433-ac96-14fd6715be06n%40googlegroups.com.

Lance A. Endres

unread,
Mar 18, 2021, 1:27:05 PM3/18/21
to ope...@googlegroups.com
Perfect!  Thanks, Mark!

-Lance


You received this message because you are subscribed to a topic in the Google Groups "OpenPnP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openpnp/w5uYStlntz0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openpnp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/2354d9cb-82bd-2e1f-cb84-d15a38033ff7%40makr.zone.
Reply all
Reply to author
Forward
0 new messages