-
-
Notifications
You must be signed in to change notification settings - Fork 19.2k
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
[BUG] Compile error when HAS_LCD_MENU is false in MarlinUI::external_encoder #18777
Comments
The cause: The method is compiled when
We must match the same conditions in cpp and the header files. |
MarlinUI::external_encoder only when AUTO_BED_LEVELING_UBL and HAS_LCD_MENU enabled, to match declaration in ultralcd.h
I did the cpp match the header in #18778 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Bug Description
In ultralcd.h external_encoder() is only defined if HAS_LCD_MENU is true.
But in ultralcd.cpp the function external_encoder() is created when HAS_LCD_MENU is true or false.
With the right Configuration file, this can trigger the following compile error.
"Marlin/src/lcd/ultralcd.cpp:760:35: error: no 'void MarlinUI::external_encoder()' member function declared in class 'MarlinUI'"
My Configurations
Break_marlin_config.zip
Steps to Reproduce
Expected behavior:
It should compile
Actual behavior:
It errors with
Marlin/src/lcd/ultralcd.cpp:760:35: error: no 'void MarlinUI::external_encoder()' member function declared in class 'MarlinUI'
The text was updated successfully, but these errors were encountered: