From 9a3f6767095e22223b0d773b76565959be8064a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Br=C3=A1zio?= Date: Thu, 14 Apr 2016 16:20:17 +0100 Subject: [PATCH] Throw an error if ENCODER_PULSES_PER_STEP < -1 --- Marlin/SanityCheck.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Marlin/SanityCheck.h b/Marlin/SanityCheck.h index 901da3b59..38aec0e3c 100644 --- a/Marlin/SanityCheck.h +++ b/Marlin/SanityCheck.h @@ -290,6 +290,10 @@ #error ULTIPANEL requires some kind of encoder. #endif +#if ENCODER_PULSES_PER_STEP < 0 + #error ENCODER_PULSES_PER_STEP should not be negative, use REVERSE_MENU_DIRECTION instead +#endif + /** * Delta has limited bed leveling options */