Throw an error if ENCODER_PULSES_PER_STEP < -1

This commit is contained in:
João Brázio 2016-04-14 16:20:17 +01:00
parent 525d8256d4
commit 9a3f676709
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: F62CFD37DFFDB540

View file

@ -290,6 +290,10 @@
#error ULTIPANEL requires some kind of encoder. #error ULTIPANEL requires some kind of encoder.
#endif #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 * Delta has limited bed leveling options
*/ */