瀏覽代碼

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
   #error ULTIPANEL requires some kind of encoder.
290
   #error ULTIPANEL requires some kind of encoder.
291
 #endif
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
  * Delta has limited bed leveling options
298
  * Delta has limited bed leveling options
295
  */
299
  */

Loading…
取消
儲存