Skip to content

Commit bc77b2a

Browse files
committed
sanity check for new options
1 parent 7918862 commit bc77b2a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Marlin/src/inc/SanityCheck.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1549,6 +1549,23 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
15491549
#error "To use CHAMBER_LIMIT_SWITCHING you must disable PIDTEMPCHAMBER."
15501550
#endif
15511551

1552+
/**
1553+
* AUTOTEMP
1554+
*/
1555+
#if ENABLED(AUTOTEMP)
1556+
#ifndef AUTOTEMP_MIN
1557+
#error "AUTOTEMP requires AUTOTEMP_MIN."
1558+
#elif !defined(AUTOTEMP_MAX)
1559+
#error "AUTOTEMP requires AUTOTEMP_MAX."
1560+
#elif !defined(AUTOTEMP_FACTOR)
1561+
#error "AUTOTEMP requires AUTOTEMP_FACTOR."
1562+
#elif !defined(AUTOTEMP_ENABLED)
1563+
#error "AUTOTEMP requires AUTOTEMP_ENABLED."
1564+
#elif AUTOTEMP_MAX < AUTOTEMP_MIN
1565+
#error "AUTOTEMP_MAX must be greater than or equal to AUTOTEMP_MIN."
1566+
#endif
1567+
#endif
1568+
15521569
/**
15531570
* Features that require a min/max/specific NUM_AXES
15541571
*/

0 commit comments

Comments
 (0)