-
-
Notifications
You must be signed in to change notification settings - Fork 19.4k
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 MarlinUI temporary allow cold extrude #24176
Merged
thinkyhead
merged 2 commits into
MarlinFirmware:bugfix-2.0.x
from
ellensp:fix-22921-again
May 17, 2022
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is here to make sure the flag gets set to
false
whenever the move screen is exited (so, whenever the screen is changed), otherwise the flag will be stuck in thetrue
state. As long asset_menu_cold_override
is called after_goto_menu_move_distance_e
the desired result should be achieved (assuming there are no sub-screens).The call to
set_menu_cold_override(false)
that's being added tomenu_move
(below) won't do the trick. It only resets the flag tofalse
in the event the user enters (or returns to) the Move menu, which is not guaranteed. It doesn't handle timeout to status screen or the case of some incoming G-code command changing the screen. Setting it tofalse
here ingoto_screen
is expected to be totally reliable.So, we need a better understanding why the current pattern is failing. Where else is the flag getting set to
false
? Isgoto_screen
called a second time by some quirk? What does investigation withSERIAL_ECHO
(or GDB) tell us?