diff --git a/kiln/manager.py b/kiln/manager.py index 1d232d1..6063c06 100644 --- a/kiln/manager.py +++ b/kiln/manager.py @@ -177,6 +177,6 @@ class Profile(threading.Thread): self.callback(temp, setpoint, pid_out) sleep = _next - time.time() - if (sleep > 0) + if sleep > 0: time.sleep(sleep) _next += self.interval diff --git a/kiln/stepper.py b/kiln/stepper.py index 1f10bc6..e603d4d 100644 --- a/kiln/stepper.py +++ b/kiln/stepper.py @@ -244,7 +244,7 @@ class Regulator(threading.Thread): pass class Breakout(object): - def __init__(self, addr, maxsteps=6500, minsteps=((2700, 0), (2400, 15)) ): + def __init__(self, addr, maxsteps=6500, minsteps=((2600, 0), (2300, 15)) ): import breakout self.device = breakout.Breakout(addr) self.min_interp = minsteps @@ -268,9 +268,8 @@ class Breakout(object): mix = (temp - self.min_interp[0][1]) / float(trange) return mrange * mix + self.min_interp[1][0] - def ignite(self, start=2550, delay=5): + def ignite(self, start=2400): logger.info("Igniting system") - time.sleep(delay) self.device.motor = start while self.device.motor != start: time.sleep(.1)