Skip to content

chamber_filtration: Fix post-print filtration skipped for non-volatile filament#5187

Open
bkerler wants to merge 1 commit intoprusa3d:masterfrom
bkerler:filtration_fix
Open

chamber_filtration: Fix post-print filtration skipped for non-volatile filament#5187
bkerler wants to merge 1 commit intoprusa3d:masterfrom
bkerler:filtration_fix

Conversation

@bkerler
Copy link
Copy Markdown

@bkerler bkerler commented Mar 22, 2026

This fixes issue #4779.
"needs_filtration_" is set at print start based on filament type and is false for non-volatile filaments (PLA, PETG, etc.).

This caused two problems:

  • "last_print_s_" was only updated inside the gated branch, so it was never set when printing with non-volatile filament.
  • The post-print condition was unreachable because execution always fell into the first (!needs_filtration_) branch and set "output_pwm_" to 0.

As a result, post-print filtration never activated for non-volatile filaments even when explicitly configured by the user, regardless of the backend (DIY or Advanced/official filter).

@bkerler bkerler changed the title chamber_filtration: Fix post-print filtration skipped for non-volatil… chamber_filtration: Fix post-print filtration skipped for non-volatile filament Mar 22, 2026
…e filaments

Needs_filtration_ is set at print start based
on filament type and is false for non-volatile filaments (PLA, PETG, etc.).

This caused two problems:
- last_print_s_ was only updated inside the gated branch, so it was
  never set when printing with non-volatile filament.
- The post-print condition was unreachable because execution always fell
  into the first (!needs_filtration_) branch and set output_pwm_ to 0.

As a result, post-print filtration never activated for non-volatile
filaments even when explicitly configured by the user, regardless of
the backend (DIY or Advanced/official filter).

Fixes prusa3d#4779
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.

1 participant