Skip to content

fix(418): Target temp not restored after filament runout#419

Open
m-abs wants to merge 2 commits into
OpenNeptune3D:devfrom
m-abs:fix/418-restore-temperature
Open

fix(418): Target temp not restored after filament runout#419
m-abs wants to merge 2 commits into
OpenNeptune3D:devfrom
m-abs:fix/418-restore-temperature

Conversation

@m-abs

@m-abs m-abs commented Apr 28, 2026

Copy link
Copy Markdown

Add gcode variables similar to what PAUSE macro uses, to restore target temperature after loading and resuming after filament runout.

Fixes #418

Add gcode variables similar to what PAUSE macro uses, to restore
target temperature after loading and resuming after filament runout.
@halfmanbear

halfmanbear commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

Thank you for raising this. I think the correct fix would be;

[filament_switch_sensor filament_sensor]
pause_on_runout: True
insert_gcode:
  M117 Insert Detected
runout_gcode:
  M117 Runout Detected
  SET_GCODE_VARIABLE MACRO=LOAD_FILAMENT VARIABLE=prev_temp VALUE={printer["gcode_macro RESUME"].etemp|int}
  SET_GCODE_VARIABLE MACRO=UNLOAD_FILAMENT VARIABLE=prev_temp VALUE={printer["gcode_macro RESUME"].etemp|int}
  UNLOAD_FILAMENT
event_delay: 3.0
pause_delay: 1.0
switch_pin: PA12

I've updated the PR code to reflect this. Could you please test

@halfmanbear halfmanbear changed the base branch from main to dev June 11, 2026 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Filament runout doesn't return target temperature after replacing filament.

2 participants