瀏覽代碼

Sanity check SERIAL_PORT

Addressing #7400
Scott Lahteine 7 年之前
父節點
當前提交
f64d300cfd
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 4 行新增0 行删除
  1. 4
    0
      Marlin/src/inc/SanityCheck.h

+ 4
- 0
Marlin/src/inc/SanityCheck.h 查看文件

@@ -281,6 +281,10 @@
281 281
   #error "SERIAL_XON_XOFF and SERIAL_STATS_* features not supported on USB-native AVR devices."
282 282
 #endif
283 283
 
284
+#if SERIAL_PORT > 7
285
+  #error "Set SERIAL_PORT to the port on your board. Usually this is 0."
286
+#endif
287
+
284 288
 /**
285 289
  * Dual Stepper Drivers
286 290
  */

Loading…
取消
儲存