Commit 778ce6a1 authored by Guillaume Seguin's avatar Guillaume Seguin

Minor change to setspeed stuff

parent 3d67dd01
...@@ -498,11 +498,11 @@ class PronterWindow(MainWindow, pronsole.pronsole): ...@@ -498,11 +498,11 @@ class PronterWindow(MainWindow, pronsole.pronsole):
if not l.__class__ in (str, unicode) or not len(l): if not l.__class__ in (str, unicode) or not len(l):
l = str(self.speed_slider.GetValue()) l = str(self.speed_slider.GetValue())
else: else:
l = l.lower().replace(", ", ".") l = l.lower()
f = float(l) speed = int(l)
if self.p.online: if self.p.online:
self.p.send_now("M220 S" + l) self.p.send_now("M220 S" + l)
print _("Setting print speed factor to %.1f%%.") % f print _("Setting print speed factor to %d%%.") % speed
else: else:
print _("Printer is not online.") print _("Printer is not online.")
except Exception, x: except Exception, x:
......
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