kliment / Printrun

Pronterface, Pronsole, and Printcore - Pure Python 3d printing host software
GNU General Public License v3.0
2.38k stars 996 forks source link

how to get output after sending M114 command in printcore? #986

Open amrithmmh opened 5 years ago

amrithmmh commented 5 years ago

i am trying to run one command(G0 X100) get output M114 then send another command but printcore has no proper documentation and also i keep getting this error even if i connect to marlin on RAMPS 1.4 and can run the X axis but error

Traceback (most recent call last): File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner self.run() File "/usr/lib/python3.6/threading.py", line 864, in run self._target(*self._args, **self._kwargs) File "/Desktop/Smart_tap_bot/printrun/printcore.py", line 347, in _listen line = self._readline() File "/Desktop/Smart_tap_bot/printrun/printcore.py", line 281, in _readline if 'Bad file descriptor' in e.args[1]: IndexError: tuple index out of range

amrithmmh commented 5 years ago

changed e.args[1] to e.args[0] works now but now it dosent show any output the _listen thread is active but i get no feedback i used M114 M115 etc no response but i can move stepper motors using gcodes but no feedback.