Przeglądaj źródła

Throw an error if ENCODER_PULSES_PER_STEP < -1

João Brázio 9 lat temu
rodzic
commit
9a3f676709
No account linked to committer's email address
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4
    0
      Marlin/SanityCheck.h

+ 4
- 0
Marlin/SanityCheck.h Wyświetl plik

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
  */

Ładowanie…
Anuluj
Zapisz