area515 / Photonic3D

Control software for resin 3D printers
http://photonic3d.com
GNU General Public License v3.0
131 stars 115 forks source link

[BUG] : Special characters not handled by Gcode #323

Closed kloknibor closed 7 years ago

kloknibor commented 7 years ago

Hi,

I need to send the following command : M42 P# S0

When I call the executeGcode API it forwards only this :

2017-06-17 11:15:52,953 [qtp839998248-72] Write: M42 P 2017-06-17 11:15:52,953 [qtp839998248-72] Printer received:M42 P 2017-06-17 11:15:52,953 [qtp839998248-72] lineRead: ok

I probably need to encode or escape it :) Will look into that! But would be need if the API did that itself. I will take a look at that as well but any input is welcome!

WesGilster commented 7 years ago

I just tried that, and it seems to work fine without escaping.

kloknibor commented 7 years ago

I misunderstood the request and the # is mainly a place holder but for me it really ends up returning as shown... this was from the eclipse environment though... On what platform did you test? Can that matter anyway?

WesGilster commented 7 years ago

parsing isn't dependent on the OS, so it really shouldn't matter.