Add "P" parameter to M302

This commit is contained in:
Scott Lahteine
2016-07-06 08:28:09 -07:00
parent a5bae3c7d5
commit d4c68279c8
3 changed files with 31 additions and 3 deletions

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; }