Add hotEnough methods

This commit is contained in:
Scott Lahteine
2018-01-22 04:29:29 -06:00
parent 7a52dfad55
commit 61bf8478a2
3 changed files with 18 additions and 15 deletions

View File

@ -188,6 +188,9 @@ class Temperature {
FORCE_INLINE static bool targetTooColdToExtrude(const uint8_t e) { UNUSED(e); return false; }
#endif
FORCE_INLINE static bool hotEnoughToExtrude(const uint8_t e) { return !tooColdToExtrude(e); }
FORCE_INLINE static bool targetHotEnoughToExtrude(const uint8_t e) { return !targetTooColdToExtrude(e); }
private:
#if ENABLED(TEMP_SENSOR_1_AS_REDUNDANT)