Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue with eFilamentAction not cleared correctly #4339

Merged
merged 2 commits into from
Aug 21, 2023

Conversation

gudnimg
Copy link
Collaborator

@gudnimg gudnimg commented Aug 20, 2023

This PR is a continuation of #4308 which did not resolve the issue correctly.
Now eFilamentAction is only cleared by the submenus or the queued gcodes (M701/M702)

Similarly to the Preheat menu, now if the filament action is cancelled in the MMU menus (when selecting filament) then eFilamentAction is reset to None. Same applies to when the MMU operation is done running. Previously it was never reset.


Autoloading feature was tested by @sarusani, see #4308 (comment)

@gudnimg gudnimg added this to the FW 3.13.1 milestone Aug 20, 2023
@github-actions
Copy link

github-actions bot commented Aug 20, 2023

Target ΔFlash (bytes) ΔSRAM (bytes)
MK3S_MULTILANG -92 0
MK3_MULTILANG -92 0

We can't clear eFilamentAction in every case in mFilamentItem()

mFilamentItem() can trigger a call to M701 and M702 e.g. for Autoloading
and eFilamentAction must be cleared by the gcode to prevent
the user from triggering another Autoload (which will crashe the FW)

The same applies to submenus. Now the MMU submenus clear eFilamentAction
only when the action is done.

For MMU Unload Filament item, eFilamentAction is only cleared after
the unload_filament() call is done running. This fixes an issue where
the menu item can be selected again while the first unload is still
running.
Change in memory:
Flash: -156 bytes
SRAM: 0 bytes
@gudnimg gudnimg changed the title 🚧 Fix issue with eFilamentAction not cleared correctly Fix issue with eFilamentAction not cleared correctly Aug 20, 2023
@DRracer DRracer merged commit 5bf9bf7 into prusa3d:MK3 Aug 21, 2023
2 checks passed
@gudnimg gudnimg deleted the fix-filament-actions branch October 7, 2023 10:13
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.

2 participants