Add "P" parameter to M302
This commit is contained in:
parent
a5bae3c7d5
commit
d4c68279c8
3 changed files with 31 additions and 3 deletions
|
|
@ -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; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue