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

[2.0.x] Fix Bed Temp Period #8560

Closed

Conversation

Wackerbarth
Copy link
Contributor

Reference PR #8236
In copying the #if ENABLED(... spaghetti to add Thermal Protection to PID Autotune (M303), the wrong formula was used for the THERMAL_PROTECTION_BED_PERIOD. This causes the attempted calibration to immediately halt with a RUNAWAY indication.

@Wackerbarth Wackerbarth changed the title Fix Bed Temp Period [2.0.x] Fix Bed Temp Period Nov 25, 2017
@GMagician
Copy link
Contributor

GMagician commented Nov 25, 2017

Excuse me but why is time related with temperature?

@Wackerbarth
Copy link
Contributor Author

Wackerbarth commented Nov 25, 2017 via email

@GMagician
Copy link
Contributor

GMagician commented Nov 25, 2017

Yes but you subtract to temperature a time.
Your code:
watch_temp_period = hotend < 0 ? temp - THERMAL_PROTECTION_BED_PERIOD : THERMAL_PROTECTION_PERIOD

@Wackerbarth
Copy link
Contributor Author

Wackerbarth commented Nov 25, 2017 via email

@GMagician
Copy link
Contributor

lol sorry....you removed that

Roxy-3D added a commit that referenced this pull request Nov 25, 2017
Travis is having problems at:  #8560   

So...   doing a direct commit to get things correct.   Bugfix_v1.1.x does not have this bug.  Nothing needs to be done to that branch.
@Roxy-3D
Copy link
Member

Roxy-3D commented Nov 25, 2017

This seems to be only an error in the bugfix-v2.0.0 branch. In bugfix-v1.1.x it looks more reasonable.

I don't know why Travis is having problems. But let's just close this and I'll zap it in the repository.

@Roxy-3D Roxy-3D closed this Nov 25, 2017
@Wackerbarth Wackerbarth deleted the BedAutoPID branch November 25, 2017 17:14
@thinkyhead
Copy link
Member

This could've simply been merged. The travis error is unrelated to this. See #8562.

@Roxy-3D
Copy link
Member

Roxy-3D commented Nov 25, 2017

Yeah... In hindsight that is true. But I was thinking if something doesn't pass Travis it should not be merged.

@thinkyhead
Copy link
Member

A page search of "error:" (with the colon) is a fast way to find the errors in the Travis log, and sometimes the issue is simple enough to fix in-place.

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.

4 participants