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

Bugfix: Temperature checks when no heaters in use #1825

Merged
merged 1 commit into from
Apr 7, 2015

Conversation

r89m
Copy link
Contributor

@r89m r89m commented Apr 5, 2015

In a system with no heaters (such as CNC mill) the MIN / MAX temperature checks were causing errors to be reported, preventing the machine from working. This conditional statement prevents that, without affecting the check in firmware for running printers

This commit checks whether or not HEATER_0 is in use, and if not, skips
the MIN / MAX temperature checks.
if (current_temperature_raw[0] GE0 maxttemp_raw[0]) max_temp_error(0);
if (minttemp_raw[0] GE0 current_temperature_raw[0]) min_temp_error(0);
#endif
#endif
Copy link
Member

Choose a reason for hiding this comment

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

Good addition! Just have to replace tabs with spaces here - 2 space indent.

thinkyhead added a commit that referenced this pull request Apr 7, 2015
Bugfix: Temperature checks when no heaters in use
@thinkyhead thinkyhead merged commit d05efa0 into MarlinFirmware:Development Apr 7, 2015
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.

2 participants