Commit 3ea0604f authored by Jim Morris's avatar Jim Morris

Fix messages coming from firmware that just have // don't get considered as a command

parent 7f5c8554
......@@ -1687,10 +1687,10 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
command = l.split(" ", 1)
if len(command) > 1:
command = command[1]
self.log(_("Received command %s") % command)
command = command.split(":")
if len(command) == 2 and command[0] == "action":
command = command[1]
self.log(_("Received command %s") % command)
if command == "pause":
if not self.paused:
wx.CallAfter(self.pause)
......
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