diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-10-18 12:49:26 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-10-18 15:58:52 -0400 |
commit | 2549ccd722c50658c638b176ec7cbfa9836675cf (patch) | |
tree | 102f7a774834a3fd59328f6651c1d4e9f392a0d0 /klippy/klippy.py | |
parent | 530a37196c447edf1ba619e4c95761dbd56cb582 (diff) | |
download | kutter-2549ccd722c50658c638b176ec7cbfa9836675cf.tar.gz kutter-2549ccd722c50658c638b176ec7cbfa9836675cf.tar.xz kutter-2549ccd722c50658c638b176ec7cbfa9836675cf.zip |
klippy: No need to return anything from _connect() method
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/klippy.py')
-rw-r--r-- | klippy/klippy.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/klippy/klippy.py b/klippy/klippy.py index 09a6b3ad..d81b4dc4 100644 --- a/klippy/klippy.py +++ b/klippy/klippy.py @@ -136,12 +136,12 @@ class Printer: self._read_config() for cb in self.state_cb: if self.state_message is not message_startup: - return self.reactor.NEVER + return cb('connect') self._set_state(message_ready) for cb in self.state_cb: if self.state_message is not message_ready: - return self.reactor.NEVER + return cb('ready') except (self.config_error, pins.error) as e: logging.exception("Config error") @@ -156,7 +156,6 @@ class Printer: logging.exception("Unhandled exception during connect") self._set_state("Internal error during connect.%s" % ( message_restart,)) - return self.reactor.NEVER def run(self): systime = time.time() monotime = self.reactor.monotonic() |