diff --git a/octoprint_smart_filament_sensor/__init__.py b/octoprint_smart_filament_sensor/__init__.py index c99632a..139b3e7 100644 --- a/octoprint_smart_filament_sensor/__init__.py +++ b/octoprint_smart_filament_sensor/__init__.py @@ -24,7 +24,7 @@ def initialize(self): GPIO.setwarnings(False) # Disable GPIO warnings self.print_started = False - self.last_movement_time = None + self.last_movement_time = datetime.now() self.lastE = -1 self.currentE = -1 self.START_DISTANCE_OFFSET = 7