Skip to content

Sourcery refactored Marlin_v1 branch#2

Open
sourcery-ai[bot] wants to merge 1 commit intoMarlin_v1from
sourcery/Marlin_v1
Open

Sourcery refactored Marlin_v1 branch#2
sourcery-ai[bot] wants to merge 1 commit intoMarlin_v1from
sourcery/Marlin_v1

Conversation

@sourcery-ai
Copy link
Copy Markdown

@sourcery-ai sourcery-ai bot commented Jun 2, 2020

Branch Marlin_v1 refactored by Sourcery.

If you're happy with these changes, merge this Pull Request using the Squash and merge strategy.

See our documentation here.

Run Sourcery locally

Reduce the feedback loop during development by using the Sourcery editor plugin:

Review changes via command line

To manually merge these changes, make sure you're on the Marlin_v1 branch, then run:

git fetch origin sourcery/Marlin_v1
git merge --ff-only FETCH_HEAD
git reset HEAD^

"Convert ADC reading into a resolution"
res = self.temp(adc)-self.temp(adc+1)
return res
return self.temp(adc)-self.temp(adc+1)
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Function Thermistor.res refactored with the following changes:

  • Inline variable that is only used once

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.

1 participant