|
@@ -582,6 +582,11 @@
|
582
|
582
|
/**
|
583
|
583
|
* Serial
|
584
|
584
|
*/
|
|
585
|
+#ifndef SERIAL_PORT
|
|
586
|
+ #error "SERIAL_PORT must be defined in Configuration.h"
|
|
587
|
+#elif defined(SERIAL_PORT_2) && SERIAL_PORT_2 == SERIAL_PORT
|
|
588
|
+ #error "SERIAL_PORT_2 cannot be the same as SERIAL_PORT. Please update your configuration."
|
|
589
|
+#endif
|
585
|
590
|
#if !(defined(__AVR__) && defined(USBCON))
|
586
|
591
|
#if ENABLED(SERIAL_XON_XOFF) && RX_BUFFER_SIZE < 1024
|
587
|
592
|
#error "SERIAL_XON_XOFF requires RX_BUFFER_SIZE >= 1024 for reliable transfers without drops."
|
|
@@ -594,12 +599,6 @@
|
594
|
599
|
#error "SERIAL_XON_XOFF and SERIAL_STATS_* features not supported on USB-native AVR devices."
|
595
|
600
|
#endif
|
596
|
601
|
|
597
|
|
-#ifndef SERIAL_PORT
|
598
|
|
- #error "SERIAL_PORT must be defined in Configuration.h"
|
599
|
|
-#elif defined(SERIAL_PORT_2) && SERIAL_PORT_2 == SERIAL_PORT
|
600
|
|
- #error "SERIAL_PORT_2 cannot be the same as SERIAL_PORT. Please update your configuration."
|
601
|
|
-#endif
|
602
|
|
-
|
603
|
602
|
/**
|
604
|
603
|
* Multiple Stepper Drivers Per Axis
|
605
|
604
|
*/
|
|
@@ -2194,6 +2193,14 @@ static_assert(hbm[Z_AXIS] >= 0, "HOMING_BUMP_MM.Z must be greater than or equal
|
2194
|
2193
|
#endif
|
2195
|
2194
|
#endif
|
2196
|
2195
|
|
|
2196
|
+#if ENABLED(SD_IGNORE_AT_STARTUP)
|
|
2197
|
+ #if ENABLED(POWER_LOSS_RECOVERY)
|
|
2198
|
+ #error "SD_IGNORE_AT_STARTUP is incompatible with POWER_LOSS_RECOVERY."
|
|
2199
|
+ #elif ENABLED(SDCARD_EEPROM_EMULATION)
|
|
2200
|
+ #error "SD_IGNORE_AT_STARTUP is incompatible with SDCARD_EEPROM_EMULATION."
|
|
2201
|
+ #endif
|
|
2202
|
+#endif
|
|
2203
|
+
|
2197
|
2204
|
/**
|
2198
|
2205
|
* Make sure only one display is enabled
|
2199
|
2206
|
*/
|