Skip to content

Commit

Permalink
🔧 Sanity-check DEFAULT_EJERK with LIN_ADVANCE
Browse files Browse the repository at this point in the history
See #20649
  • Loading branch information
thinkyhead committed Aug 7, 2021
1 parent f4ab0a0 commit 5dc5d42
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Marlin/src/inc/SanityCheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -1210,6 +1210,10 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
);
#if ENABLED(S_CURVE_ACCELERATION) && DISABLED(EXPERIMENTAL_SCURVE)
#error "LIN_ADVANCE and S_CURVE_ACCELERATION may not play well together! Enable EXPERIMENTAL_SCURVE to continue."
#elif ENABLED(DIRECT_STEPPING)
#error "DIRECT_STEPPING is incompatible with LIN_ADVANCE. Enable in external planner if possible."
#elif DISABLED(HAS_JUNCTION_DEVIATION) && DEFAULT_EJERK < 10
#error "It is strongly recommended to set DEFAULT_EJERK >= 10 when using LIN_ADVANCE."
#endif
#endif

Expand Down Expand Up @@ -3600,13 +3604,6 @@ static_assert( _ARR_TEST(3,0) && _ARR_TEST(3,1) && _ARR_TEST(3,2)
#error "SAVED_POSITIONS must be an integer from 0 to 256."
#endif

/**
* Stepper Chunk support
*/
#if BOTH(DIRECT_STEPPING, LIN_ADVANCE)
#error "DIRECT_STEPPING is incompatible with LIN_ADVANCE. Enable in external planner if possible."
#endif

/**
* Touch Screen Calibration
*/
Expand Down

0 comments on commit 5dc5d42

Please sign in to comment.