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

Hide 'vsense' report row if not used #13884

Merged
merged 3 commits into from
May 5, 2019

Conversation

kAdonis
Copy link
Contributor

@kAdonis kAdonis commented May 2, 2019

Empty vsense report is removed from M122 for TMC2160 and TMC5160, because vsense does not exist for these drivers. Preventing user confusion

Related Issues

#13883

@teemuatlut
Copy link
Member

This PR needs a bit more work to account for mixed driver configurations.
Also pay attention to indentation.

@kAdonis
Copy link
Contributor Author

kAdonis commented May 2, 2019

Oops, Sorry. You are right, I didnt thougt about mixed drivers

@@ -793,7 +793,9 @@
#endif
TMC_REPORT("CS actual\t", TMC_CS_ACTUAL);
TMC_REPORT("PWM scale", TMC_PWM_SCALE);
TMC_REPORT("vsense\t", TMC_VSENSE);
#if HAS_DRIVER(TMC2130) || HAS_DRIVER(TMC2224) || HAS_DRIVER(TMC2660) || HAS_DRIVER(TMC2208)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the first reference we have to TMC2224. Are there other elements that go along with this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I put HAS_DRIVER(TMC2224) in here just for completeness, as they are supported by the TMCStepper library.
Sorry, I dont understand what you mean with: Are there other elements that go along with this?

@thinkyhead thinkyhead merged commit ee73e17 into MarlinFirmware:bugfix-2.0.x May 5, 2019
@thinkyhead thinkyhead changed the title Remove obsolete vsense report Hide 'vsense' report row if not used May 5, 2019
@kAdonis kAdonis deleted the remove-vsense branch May 16, 2019 13:43
ozgunawesome pushed a commit to ozgunawesome/Marlin that referenced this pull request May 29, 2019
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.

3 participants