Parcourir la source

Add sanity check for SAV_3DGLCD display types

Scott Lahteine il y a 8 ans
Parent
révision
b703fa9538
1 fichiers modifiés avec 8 ajouts et 1 suppressions
  1. 8
    1
      Marlin/SanityCheck.h

+ 8
- 1
Marlin/SanityCheck.h Voir le fichier

@@ -367,7 +367,14 @@
367 367
 #endif
368 368
 
369 369
 #if ENCODER_PULSES_PER_STEP < 0
370
-  #error "ENCODER_PULSES_PER_STEP should not be negative, use REVERSE_MENU_DIRECTION instead"
370
+  #error "ENCODER_PULSES_PER_STEP should not be negative, use REVERSE_MENU_DIRECTION instead."
371
+#endif
372
+
373
+/**
374
+ * SAV_3DGLCD display options
375
+ */
376
+#if ENABLED(U8GLIB_SSD1306) && ENABLED(U8GLIB_SH1106)
377
+  #error "Only enable one SAV_3DGLCD display type: U8GLIB_SSD1306 or U8GLIB_SH1106."
371 378
 #endif
372 379
 
373 380
 /**

Chargement…
Annuler
Enregistrer