浏览代码

Sanity check unsupported EP (#19745)

Victor Oliveira 4 年前
父节点
当前提交
5247bb11f7
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7
    0
      Marlin/src/HAL/STM32F1/inc/SanityCheck.h

+ 7
- 0
Marlin/src/HAL/STM32F1/inc/SanityCheck.h 查看文件

@@ -51,3 +51,10 @@
51 51
 #if ENABLED(NEOPIXEL_LED)
52 52
   #error "NEOPIXEL_LED (Adafruit NeoPixel) is not supported for HAL/STM32F1. Comment out this line to proceed at your own risk!"
53 53
 #endif
54
+
55
+// Emergency Parser needs at least one serial with HardwareSerial or USBComposite.
56
+// The USBSerial maple don't allow any hook to implement EMERGENCY_PARSER.
57
+// And copy all USBSerial code to marlin space to support EMERGENCY_PARSER, when we have another options, don't worth it.
58
+#if ENABLED(EMERGENCY_PARSER) && !defined(USE_USB_COMPOSITE) && ((SERIAL_PORT == -1 && !defined(SERIAL_PORT_2)) || (SERIAL_PORT_2 == -1 && !defined(SERIAL_PORT)))
59
+  #error "EMERGENCY_PARSER is only supported by HardwareSerial or USBComposite in HAL/STM32F1."
60
+#endif

正在加载...
取消
保存