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

Tramming wizard returns to status screen prematurely #20796

Merged

Conversation

zeleps
Copy link
Contributor

@zeleps zeleps commented Jan 16, 2021

Description

Two instances of the tramming wizard returning to the status screen prematurely:

a. When initial homing involves tool change (i.e. PARKING_EXTRUDER configuration), wizard abruptly ends when tool_change method is invoked. This is caused by the unconditional call to ui.return_to_status() (thus ignoring the defer flag). I'm not sure about the proposed fix (I don't know why tool_change() wants to return back to status screen at this point), but it seemed ok to call ui.update() instead of return_to_status(), in order to respect the defer flag. Also considered checking defer_return_to_status on the spot, but it seemed counter-intuitive (MarlinUI class should take care of its own flags).

b. When navigating back from a tramming single probe menu item, the wizard (obviously, unintentionally) resets the defer flag, so next probe item will return to status screen during move_to_tramming_wait_pos().

Requirements

None.

Benefits

Tramming wizard now operates and completes normally.

Configurations

PARKING_EXTRUDER enabled for (a), Default (disabled) LCD_TIMEOUT_TO_STATUS to demonstrate (b).

Related Issues

N/A.

@zeleps
Copy link
Contributor Author

zeleps commented Jan 16, 2021

Temporarily disabling bed leveling (it seems it was ommited in the tramming wizard, although it's done in G35).

@thinkyhead thinkyhead merged commit 1b19eed into MarlinFirmware:bugfix-2.0.x Jan 17, 2021
@zeleps zeleps deleted the bugfix-2.0.x-Tramming_wizard_fix branch January 17, 2021 08:51
kpishere pushed a commit to kpishere/Marlin that referenced this pull request Feb 19, 2021
zillarob pushed a commit to zillarob/Marlin that referenced this pull request Feb 25, 2021
W4tel-BiDi pushed a commit to W4tel-BiDi/Marlin that referenced this pull request Apr 5, 2021
thinkyhead pushed a commit to thinkyhead/Marlin that referenced this pull request Apr 29, 2021
thinkyhead pushed a commit that referenced this pull request Apr 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants