Parcourir la source

🚸 Better error for MOTHERBOARD not defined (#22551)

ellensp il y a 3 ans
Parent
révision
5c610b2c18
Aucun compte lié à l'adresse e-mail de l'auteur
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3
    1
      Marlin/src/pins/pins.h

+ 3
- 1
Marlin/src/pins/pins.h Voir le fichier

@@ -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

Chargement…
Annuler
Enregistrer