Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions octoprint_smart_filament_sensor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,9 @@ def printer_change_filament (self):
if(not self.send_code):
self._logger.error("Motion sensor detected no movement")
self._logger.info("Pause command: " + self.pause_command)
self._printer.commands(self.pause_command)
self.send_code = True
if self.pause_command != "@DRY_RUN":
self._printer.commands(self.pause_command)
self.send_code = True
self._data.filament_moving = False
self.lastE = -1 # Set to -1 so it ignores the first test then continues

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
<option value="M601">{{ _('M601 - Pause print') }}</option>
<option value="@pause">{{ _('@pause - Octoprint Pause') }}</option>
<option value="@cancel">{{ _('@cancel - Octoprint Cancel') }}</option>
<option value="@DRY_RUN">{{ _('@DRY_RUN - Do nothing') }}</option>
</select>
<span class="help-block"><small>Before selecting a pause command check if your firmware supports it!</small></span>
</div>
Expand Down