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

[BUG] Compilation fails with DAC steppers and screen enabled #15803

Closed
0r31 opened this issue Nov 4, 2019 · 8 comments
Closed

[BUG] Compilation fails with DAC steppers and screen enabled #15803

0r31 opened this issue Nov 4, 2019 · 8 comments

Comments

@0r31
Copy link
Contributor

0r31 commented Nov 4, 2019

Hi all,

Please find below a bug i suspect in Marlin 2.0 current revision.

Regards,
Orel

Description

As stated in the issue title, the compilation fails when DAC steppers and screen features are enabled.

Steps to Reproduce

Configuration files: Marlin_config.zip

From the current revision of bugfix-2.0.x branch, just change the MOTHERBOARD to BOARD_RIGIDBOARD_V2 for instance (a board for which DAC steppers are enabled) and uncomment REPRAP_DISCOUNT_SMART_CONTROLLER in Configuration.h. Then compile using the default platformio environment.

Expected behavior: Compilation success.

Actual behavior: Compilation failure. See below for compilation log.

Additional Information

Compilation log: https://pastebin.com/eXsx7AWy

@0r31
Copy link
Contributor Author

0r31 commented Nov 6, 2019

Hi again,

First of all, thanks to @boelle to add the compilation log to pastebin. I was aware that putting a log "as it is" could be annoying but i have no clue on what to do with logs in the bug template.

Regarding the potential bug, i guess the issue is around the GET_TEXT macro or the way the EDIT_ITEM macro handles labels or the way this label is built...

I am fine to submit a pull request, but i want to be aligned with the coding rules...
It is easy to get rid of that bug in changing the LABEL argument of this EDIT_ITEM call to a "valid" one, but it is not the right way to fix it.

Regards,
Orel

@boelle
Copy link
Contributor

boelle commented Nov 11, 2019

@dagorel did you make a PR to fix this?

@0r31
Copy link
Contributor Author

0r31 commented Nov 23, 2019

Hi @boelle ,

Actually it can be solved in defining new labels for each axis (MSG_DAC_PERCENT_X, MSG_DAC_PERCENT_Y, MSG_DAC_PERCENT_Z) and use MSG_DAC_PERCENT_##A in the EDIT_DAC_PERCENT macro. But i am not happy with this solution so i try to find another one before proposing a PR.

Regards,
Orel

@boelle boelle changed the title [BUG] Compilation fails with DAC steppers and screen enabled [BUG] [Bugfix 2.0.x] Compilation fails with DAC steppers and screen enabled Nov 24, 2019
@boelle boelle changed the title [BUG] [Bugfix 2.0.x] Compilation fails with DAC steppers and screen enabled [BUG] Compilation fails with DAC steppers and screen enabled Nov 26, 2019
@boelle
Copy link
Contributor

boelle commented Dec 7, 2019

@dagorel since 2.0 was just released a few days ago has this changed this issue at all?

0r31 added a commit to 0r31/Marlin that referenced this issue Dec 10, 2019
@0r31
Copy link
Contributor Author

0r31 commented Dec 10, 2019

Hi @boelle ,

It is the very same with the new 2.0 branch so i submit a pull request on the bugfix-2.0.x branch.

Regards,
Orel

@boelle
Copy link
Contributor

boelle commented Dec 10, 2019

:-) great, nice when people contribute

@boelle
Copy link
Contributor

boelle commented Dec 10, 2019

let hope @thinkyhead hits merge soon

@github-actions
Copy link

github-actions bot commented Jul 3, 2020

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.

@github-actions github-actions bot locked and limited conversation to collaborators Jul 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants