Skip to content

Commit

Permalink
Removed unnecessary snapshot and position timeouts.
Browse files Browse the repository at this point in the history
  • Loading branch information
FormerLurker committed Mar 23, 2018
1 parent eaa6954 commit 3cf00b7
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions octoprint_octolapse/timelapse.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ def __init__(
self._position_signal.set()

# get snapshot async private variables
self._snapshot_success = None
self._snapshot_timeout = 30.0
self._snapshot_success = False
self._snapshot_timeout = 600.0
self._snapshot_signal = threading.Event()
self._snapshot_signal.set()
self.CurrentProfiles = {}
Expand Down Expand Up @@ -300,16 +300,6 @@ def start_timelapse(
# take a snapshot of the current settings for use in the Octolapse Tab
self.CurrentProfiles = self.Settings.get_profiles_dict()

# fetch position private variables
self._position_payload = None
self._position_timeout = 30.0
self._position_signal.set()

# get snapshot async private variables
self._snapshot_success = None
self._snapshot_timeout = 30.0
self._snapshot_signal.set()

# send an initial state message
self._on_timelapse_start()

Expand Down Expand Up @@ -898,14 +888,9 @@ def _reset(self):
}
# fetch position private variables
self._position_payload = None
self._position_timeout = 600.0
self._position_signal = threading.Event()
self._position_signal.set()

# get snapshot async private variables
self._snapshot_success = None
self._snapshot_timeout = 30.0
self._snapshot_signal = threading.Event()
self._snapshot_signal.set()

def _reset_snapshot(self):
Expand Down

0 comments on commit 3cf00b7

Please sign in to comment.