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

Variable old_tool_index used with multi_hotend not defined #26118

Closed
wants to merge 2 commits into from

Conversation

Ari-SSO
Copy link
Contributor

@Ari-SSO Ari-SSO commented Jul 23, 2023

The variable was not defined and if you set more than one hotend the code do not compile.

Description

File: G33.cpp

The variable old_tool_index was not defined in the code. The code complie OK when HAS_MULTI_HOTEND is not defined, if HAS_MULTI_HOTEND is defined, the compiler fails.

Adding the definition of the variable solve the problem and the code compile OK.
#if ENABLED(HAS_MULTI_HOTEND)
const uint8_t old_tool_index = active_extruder;
#endif

Requirements

Benefits

The variable old_tool_index was not defined and the code fails when compiling a configuration with mora than one extruder.

Configurations

#define HAS_MULTI_HOTEND

Related Issues

#26119

The variable was not defined and if you set more than one hotend the code do not compile.
@Ari-SSO Ari-SSO closed this Jul 23, 2023
@Ari-SSO
Copy link
Contributor Author

Ari-SSO commented Jul 23, 2023

I send a new PR for passing the testing

@Ari-SSO Ari-SSO deleted the bugfix-2.1.x branch July 23, 2023 14:52
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.

[BUG] (The code do not compile with more than one extruder -in branch "bugfix-2.1.x")
1 participant