Browse Source

Sanity check SERIAL_PORT

Addressing #7400
Scott Lahteine 7 years ago
parent
commit
f64d300cfd
No account linked to committer's email address
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      Marlin/src/inc/SanityCheck.h

+ 4
- 0
Marlin/src/inc/SanityCheck.h View File

281
   #error "SERIAL_XON_XOFF and SERIAL_STATS_* features not supported on USB-native AVR devices."
281
   #error "SERIAL_XON_XOFF and SERIAL_STATS_* features not supported on USB-native AVR devices."
282
 #endif
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
  * Dual Stepper Drivers
289
  * Dual Stepper Drivers
286
  */
290
  */

Loading…
Cancel
Save