Explorar el Código

Add sanity check for SAV_3DGLCD display types

Scott Lahteine hace 8 años
padre
commit
b703fa9538
Se han modificado 1 ficheros con 8 adiciones y 1 borrados
  1. 8
    1
      Marlin/SanityCheck.h

+ 8
- 1
Marlin/SanityCheck.h Ver fichero

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

Loading…
Cancelar
Guardar