Skip to content

GCode was sent before printer is paused [self fixed] #56

@linux-paul

Description

@linux-paul

Running with klipper with Paused and Gcode is enabled, the gcode was sent before printer ist paused.
I fixed this myself and also trigger is fired only once in the print when "send gcode only once" is enabled. Fixed issue: "fillamet loaded" is fired after resume which blocks the callback for further events.
If anybody is interested in, let me know ;)

....
This is a log as it should be (in my opinion) :)
2020-05-31 10:44:15,109 - octoprint.util.comm - INFO - Changing monitoring state from "Operational" to "Starting" 2020-05-31 10:44:15,118 - octoprint.plugins.filamentreload - INFO - PrintStarted: Enabling filament sensor. 2020-05-31 10:44:15,149 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0 2020-05-31 10:44:15,153 - octoprint.util.comm - INFO - Changing monitoring state from "Starting" to "Printing" 2020-05-31 12:42:46,576 - octoprint.plugins.filamentreload - INFO - Filament detected! 2020-05-31 12:42:47,579 - octoprint.plugins.filamentreload - INFO - Filament detected! 2020-05-31 12:43:08,921 - octoprint.plugins.filamentreload - INFO - Out of filament! 2020-05-31 12:43:08,922 - octoprint.plugins.filamentreload - INFO - Sending GCODE only once... 2020-05-31 12:43:08,924 - octoprint.plugins.filamentreload - INFO - Pausing print... 2020-05-31 12:43:08,925 - octoprint.util.comm - INFO - Changing monitoring state from "Printing" to "Pausing" 2020-05-31 12:43:12,167 - octoprint.util.comm - INFO - Changing monitoring state from "Pausing" to "Paused" 2020-05-31 12:43:12,933 - octoprint.plugins.filamentreload - INFO - Sending out of filament GCODE 2020-05-31 12:43:13,935 - octoprint.plugins.filamentreload - INFO - Sensor callback but no trigger state change. 2020-05-31 12:44:23,457 - octoprint.plugins.filamentreload - INFO - Sensor callback but no trigger state change. 2020-05-31 12:44:24,460 - octoprint.plugins.filamentreload - INFO - Sensor callback but no trigger state change. 2020-05-31 12:45:30,397 - octoprint.util.comm - INFO - Changing monitoring state from "Paused" to "Resuming" 2020-05-31 12:45:30,406 - octoprint.plugins.filamentreload - INFO - PrintResumed: Enabling filament sensor. 2020-05-31 12:45:30,442 - octoprint.util.comm - INFO - Changing monitoring state from "Resuming" to "Printing" 2020-05-31 14:52:04,110 - octoprint.plugins.filamentreload - INFO - Out of filament! 2020-05-31 14:52:04,111 - octoprint.plugins.filamentreload - INFO - Sending GCODE only once... 2020-05-31 14:52:04,112 - octoprint.plugins.filamentreload - INFO - Pausing print... 2020-05-31 14:52:04,113 - octoprint.util.comm - INFO - Changing monitoring state from "Printing" to "Pausing" 2020-05-31 14:52:06,457 - octoprint.util.comm - INFO - Changing monitoring state from "Pausing" to "Paused" 2020-05-31 14:52:07,119 - octoprint.plugins.filamentreload - INFO - Sending out of filament GCODE 2020-05-31 14:52:46,017 - octoprint.plugins.filamentreload - INFO - Sensor callback but no trigger state change. 2020-05-31 14:52:47,020 - octoprint.plugins.filamentreload - INFO - Sensor callback but no trigger state change. 2020-05-31 14:53:49,079 - octoprint.util.comm - INFO - Changing monitoring state from "Paused" to "Resuming" 2020-05-31 14:53:49,093 - octoprint.plugins.filamentreload - INFO - PrintResumed: Enabling filament sensor. 2020-05-31 14:53:49,131 - octoprint.util.comm - INFO - Changing monitoring state from "Resuming" to "Printing"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions