浏览代码

Merge pull request #3495 from jbrazio/bugfix/followup-3485

Throw an error if ENCODER_PULSES_PER_STEP < -1
Scott Lahteine 9 年前
父节点
当前提交
9e95f30de0
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      Marlin/SanityCheck.h

+ 4
- 0
Marlin/SanityCheck.h 查看文件

@@ -290,6 +290,10 @@
290 290
   #error ULTIPANEL requires some kind of encoder.
291 291
 #endif
292 292
 
293
+#if ENCODER_PULSES_PER_STEP < 0
294
+  #error ENCODER_PULSES_PER_STEP should not be negative, use REVERSE_MENU_DIRECTION instead
295
+#endif
296
+
293 297
 /**
294 298
  * Delta has limited bed leveling options
295 299
  */

正在加载...
取消
保存