Browse Source

Add sanity-check for MOTHERBOARD

Scott Lahteine 6 years ago
parent
commit
bbf80440bf
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      Marlin/src/inc/SanityCheck.h

+ 3
- 1
Marlin/src/inc/SanityCheck.h View File

54
 /**
54
 /**
55
  * Warnings for old configurations
55
  * Warnings for old configurations
56
  */
56
  */
57
-#if !defined(X_BED_SIZE) || !defined(Y_BED_SIZE)
57
+#ifndef MOTHERBOARD
58
+  #error "MOTHERBOARD is required. Please update your configuration."
59
+#elif !defined(X_BED_SIZE) || !defined(Y_BED_SIZE)
58
   #error "X_BED_SIZE and Y_BED_SIZE are now required! Please update your configuration."
60
   #error "X_BED_SIZE and Y_BED_SIZE are now required! Please update your configuration."
59
 #elif WATCH_TEMP_PERIOD > 500
61
 #elif WATCH_TEMP_PERIOD > 500
60
   #error "WATCH_TEMP_PERIOD now uses seconds instead of milliseconds."
62
   #error "WATCH_TEMP_PERIOD now uses seconds instead of milliseconds."

Loading…
Cancel
Save