Commit 3b7a21d7 authored by Guillaume Seguin's avatar Guillaume Seguin

WIP #575: actually get !! and // to work in pronterface

parent 07af3e4d
......@@ -1244,12 +1244,12 @@ class pronsole(cmd.Cmd):
def recvcb(self, l):
l = l.rstrip()
for listener in self.recvlisteners:
listener(l)
if not self.recvcb_actions(l):
report_type = self.recvcb_report(l)
if report_type & REPORT_TEMP:
self.status.update_tempreading(l)
for listener in self.recvlisteners:
listener(l)
if l != "ok" and not self.sdlisting \
and not self.monitoring and (report_type == REPORT_NONE or report_type & REPORT_MANUAL):
if l[:5] == "echo:":
......
......@@ -1700,8 +1700,7 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
def recvcb(self, l):
l = l.rstrip()
if l.startswith("!!"):
return
if not self.recvcb_actions(l):
report_type = self.recvcb_report(l)
isreport = report_type != REPORT_NONE
if report_type & REPORT_POS:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment