Add "P" parameter to M302

This commit is contained in:
Scott Lahteine committed 2016-07-12 20:04:15 -07:00
1 parent a5bae3c7d5
commit d4c68279c8
3 files changed
+31 -3

No files matched your search

+2 -1
View File
@@ -121,12 +121,13 @@ class Temperature {
#endif
#if ENABLED(PREVENT_DANGEROUS_EXTRUDE)
static bool allow_cold_extrude;
static float extrude_min_temp;
static bool tooColdToExtrude(uint8_t e) {
#if HOTENDS == 1
UNUSED(e);
#endif
return degHotend(HOTEND_INDEX) < extrude_min_temp;
return allow_cold_extrude ? false : degHotend(HOTEND_INDEX) < extrude_min_temp;
}
#else
static bool tooColdToExtrude(uint8_t e) { UNUSED(e); return false; }