浏览代码

Sanity-check for COREnn backlash (#21731)

Nikolay March 3 年前
父节点
当前提交
68c010f82a
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3
    1
      Marlin/src/inc/SanityCheck.h

+ 3
- 1
Marlin/src/inc/SanityCheck.h 查看文件

@@ -3034,8 +3034,10 @@ static_assert(   _ARR_TEST(3,0) && _ARR_TEST(3,1) && _ARR_TEST(3,2)
3034 3034
                   "BACKLASH_COMPENSATION can only apply to " STRINGIFY(NORMAL_AXIS) " on a MarkForged system.");
3035 3035
   #elif IS_CORE
3036 3036
     constexpr float backlash_arr[] = BACKLASH_DISTANCE_MM;
3037
-    static_assert(!backlash_arr[CORE_AXIS_1] && !backlash_arr[CORE_AXIS_2],
3037
+    #ifndef CORE_BACKLASH
3038
+      static_assert(!backlash_arr[CORE_AXIS_1] && !backlash_arr[CORE_AXIS_2],
3038 3039
                   "BACKLASH_COMPENSATION can only apply to " STRINGIFY(NORMAL_AXIS) " with your CORE system.");
3040
+    #endif
3039 3041
   #endif
3040 3042
 #endif
3041 3043
 

正在加载...
取消
保存