Skip to content

Commit

Permalink
clear _autostart_file on print start, #124
Browse files Browse the repository at this point in the history
  • Loading branch information
jneilliii committed Jan 30, 2021
1 parent 9472082 commit 3565594
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions octoprint_tasmota/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,9 @@ def on_event(self, event, payload):
self.print_job_power -= float(self.deep_get(status, ["energy_data", "Total"], default=0))
self._tasmota_logger.debug(self.print_job_power)

if event == Events.PRINT_STARTED:
self._autostart_file = None

if event == Events.PRINT_STARTED and self.powerOffWhenIdle:
if self._abort_timer is not None:
self._abort_timer.cancel()
Expand Down

0 comments on commit 3565594

Please sign in to comment.