diff --git a/octoprint_smart_filament_sensor/__init__.py b/octoprint_smart_filament_sensor/__init__.py index c99632a..dc194a9 100644 --- a/octoprint_smart_filament_sensor/__init__.py +++ b/octoprint_smart_filament_sensor/__init__.py @@ -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 diff --git a/octoprint_smart_filament_sensor/templates/smartfilamentsensor_settings.jinja2 b/octoprint_smart_filament_sensor/templates/smartfilamentsensor_settings.jinja2 index ab252cf..f3e22ed 100644 --- a/octoprint_smart_filament_sensor/templates/smartfilamentsensor_settings.jinja2 +++ b/octoprint_smart_filament_sensor/templates/smartfilamentsensor_settings.jinja2 @@ -36,6 +36,7 @@ + Before selecting a pause command check if your firmware supports it!