Browse Source

🚸 Better error for MOTHERBOARD not defined (#22551)

ellensp 3 years ago
parent
commit
5c610b2c18
No account linked to committer's email address
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      Marlin/src/pins/pins.h

+ 3
- 1
Marlin/src/pins/pins.h View File

@@ -769,8 +769,10 @@
769 769
     #error "BOARD_RAMPS_LONGER3D_LK4PRO is now BOARD_LONGER3D_LKx_PRO. Please update your configuration."
770 770
   #elif MB(BTT_SKR_V2_0)
771 771
     #error "BTT_SKR_V2_0 is now BTT_SKR_V2_0_REV_A or BTT_SKR_V2_0_REV_B. See https://bit.ly/3t5d9JQ for more information. Please update your configuration."
772
+  #elif defined(MOTHERBOARD)
773
+    #error "Unknown MOTHERBOARD value set in Configuration.h."
772 774
   #else
773
-    #error "Unknown MOTHERBOARD value set in Configuration.h"
775
+    #error "MOTHERBOARD not defined! Use '#define MOTHERBOARD BOARD_...' in Configuration.h."
774 776
   #endif
775 777
 
776 778
   #undef BOARD_MKS_13

Loading…
Cancel
Save