|
@@ -2651,14 +2651,14 @@ static_assert( _ARR_TEST(3,0) && _ARR_TEST(3,1) && _ARR_TEST(3,2)
|
2651
|
2651
|
#endif
|
2652
|
2652
|
|
2653
|
2653
|
#if ENABLED(BACKLASH_COMPENSATION)
|
2654
|
|
- #if IS_CORE
|
2655
|
|
- #error "BACKLASH_COMPENSATION is incompatible with CORE kinematics."
|
2656
|
|
- #endif
|
2657
|
2654
|
#ifndef BACKLASH_DISTANCE_MM
|
2658
|
2655
|
#error "BACKLASH_COMPENSATION requires BACKLASH_DISTANCE_MM"
|
2659
|
|
- #endif
|
2660
|
|
- #ifndef BACKLASH_CORRECTION
|
|
2656
|
+ #elif !defined(BACKLASH_CORRECTION)
|
2661
|
2657
|
#error "BACKLASH_COMPENSATION requires BACKLASH_CORRECTION"
|
|
2658
|
+ #elif IS_CORE
|
|
2659
|
+ constexpr float backlash_arr[] = BACKLASH_DISTANCE_MM;
|
|
2660
|
+ static_assert(!backlash_arr[CORE_AXIS_1] && !backlash_arr[CORE_AXIS_2],
|
|
2661
|
+ "BACKLASH_COMPENSATION can only apply to " STRINGIFY(NORMAL_AXIS) " with your CORE system.");
|
2662
|
2662
|
#endif
|
2663
|
2663
|
#endif
|
2664
|
2664
|
|