klippy: No need to return anything from _connect() method
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
530a37196c
commit
2549ccd722
|
@ -136,12 +136,12 @@ class Printer:
|
||||||
self._read_config()
|
self._read_config()
|
||||||
for cb in self.state_cb:
|
for cb in self.state_cb:
|
||||||
if self.state_message is not message_startup:
|
if self.state_message is not message_startup:
|
||||||
return self.reactor.NEVER
|
return
|
||||||
cb('connect')
|
cb('connect')
|
||||||
self._set_state(message_ready)
|
self._set_state(message_ready)
|
||||||
for cb in self.state_cb:
|
for cb in self.state_cb:
|
||||||
if self.state_message is not message_ready:
|
if self.state_message is not message_ready:
|
||||||
return self.reactor.NEVER
|
return
|
||||||
cb('ready')
|
cb('ready')
|
||||||
except (self.config_error, pins.error) as e:
|
except (self.config_error, pins.error) as e:
|
||||||
logging.exception("Config error")
|
logging.exception("Config error")
|
||||||
|
@ -156,7 +156,6 @@ class Printer:
|
||||||
logging.exception("Unhandled exception during connect")
|
logging.exception("Unhandled exception during connect")
|
||||||
self._set_state("Internal error during connect.%s" % (
|
self._set_state("Internal error during connect.%s" % (
|
||||||
message_restart,))
|
message_restart,))
|
||||||
return self.reactor.NEVER
|
|
||||||
def run(self):
|
def run(self):
|
||||||
systime = time.time()
|
systime = time.time()
|
||||||
monotime = self.reactor.monotonic()
|
monotime = self.reactor.monotonic()
|
||||||
|
|
Loading…
Reference in New Issue