Przeglądaj źródła

Split DEFAULT_MACHINE_NAME from DEFAULT_SOURCE_URL

Addressing #3325 – Avoid undefined symbol errors in the compiler.
Scott Lahteine 8 lat temu
rodzic
commit
4f24323817
1 zmienionych plików z 11 dodań i 4 usunięć
  1. 11
    4
      Marlin/language.h

+ 11
- 4
Marlin/language.h Wyświetl plik

@@ -73,22 +73,29 @@
73 73
 
74 74
 #if MB(ULTIMAKER)|| MB(ULTIMAKER_OLD)|| MB(ULTIMAIN_2)
75 75
   #define DEFAULT_MACHINE_NAME "Ultimaker"
76
-  #define DEFAULT_SOURCE_URL "https://github.com/Ultimaker/Marlin"
77 76
 #elif MB(RUMBA)
78 77
   #define DEFAULT_MACHINE_NAME "Rumba"
79 78
 #elif MB(3DRAG)
80 79
   #define DEFAULT_MACHINE_NAME "3Drag"
81
-  #define DEFAULT_SOURCE_URL "http://3dprint.elettronicain.it/"
82 80
 #elif MB(K8200)
83 81
   #define DEFAULT_MACHINE_NAME "K8200"
84
-  #define DEFAULT_SOURCE_URL "https://github.com/CONSULitAS/Marlin-K8200"
85 82
 #elif MB(5DPRINT)
86 83
   #define DEFAULT_MACHINE_NAME "Makibox"
87 84
 #elif MB(SAV_MKI)
88 85
   #define DEFAULT_MACHINE_NAME "SAV MkI"
89
-  #define DEFAULT_SOURCE_URL "https://github.com/fmalpartida/Marlin/tree/SAV-MkI-config"
90 86
 #else
91 87
   #define DEFAULT_MACHINE_NAME "3D Printer"
88
+#endif
89
+
90
+#if MB(ULTIMAKER)|| MB(ULTIMAKER_OLD)|| MB(ULTIMAIN_2)
91
+  #define DEFAULT_SOURCE_URL "https://github.com/Ultimaker/Marlin"
92
+#elif MB(3DRAG)
93
+  #define DEFAULT_SOURCE_URL "http://3dprint.elettronicain.it/"
94
+#elif MB(K8200)
95
+  #define DEFAULT_SOURCE_URL "https://github.com/CONSULitAS/Marlin-K8200"
96
+#elif MB(SAV_MKI)
97
+  #define DEFAULT_SOURCE_URL "https://github.com/fmalpartida/Marlin/tree/SAV-MkI-config"
98
+#else
92 99
   #define DEFAULT_SOURCE_URL "https://github.com/MarlinFirmware/Marlin"
93 100
 #endif
94 101
 

Ładowanie…
Anuluj
Zapisz