LinuxCNC / linuxcnc

LinuxCNC controls CNC machines. It can drive milling machines, lathes, 3d printers, laser cutters, plasma cutters, robot arms, hexapods, and more.
http://linuxcnc.org/
GNU General Public License v2.0
1.81k stars 1.16k forks source link

emcrsh: fix bug with extra reply line for 'get spindle_override' #3182

Open Sigma1912 opened 5 days ago

Sigma1912 commented 5 days ago

currently 'get spindle_override' command in linuxcncrsh will return an extra line containing the reply from the 'get' command before last:

get teleop_enable
TELEOP_ENABLE OFF
get spindle_override
SPINDLE_OVERRIDE 0 49.000000
TELEOP_ENABLE OFF

I'm not sure why that happens but using 'OUT' instead of 'dprintf' seems to fix this issue.