Browse Source

Merge pull request #3331 from thinkyhead/rc_default_info

Split DEFAULT_MACHINE_NAME from DEFAULT_SOURCE_URL
Scott Lahteine 9 years ago
parent
commit
783e0122d6

+ 5
- 18
Marlin/language.h View File

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

+ 3
- 0
Marlin/pins_3DRAG.h View File

@@ -26,6 +26,9 @@
26 26
 
27 27
 #include "pins_RAMPS_14.h"
28 28
 
29
+#define DEFAULT_MACHINE_NAME "3Drag"
30
+#define DEFAULT_SOURCE_URL   "http://3dprint.elettronicain.it/"
31
+
29 32
 #undef Z_ENABLE_PIN
30 33
 #define Z_ENABLE_PIN       63
31 34
 

+ 2
- 0
Marlin/pins_5DPRINT.h View File

@@ -30,6 +30,8 @@
30 30
   #error Oops!  Make sure you have 'Teensy++ 2.0' selected from the 'Tools -> Boards' menu.
31 31
 #endif
32 32
 
33
+#define DEFAULT_MACHINE_NAME "Makibox"
34
+
33 35
 #define LARGE_FLASH        true
34 36
 
35 37
 #define X_STEP_PIN          0

+ 6
- 0
Marlin/pins_K8200.h View File

@@ -26,3 +26,9 @@
26 26
  */
27 27
 
28 28
 #include "pins_3DRAG.h"
29
+
30
+#undef DEFAULT_MACHINE_NAME
31
+#define DEFAULT_MACHINE_NAME "K8200"
32
+
33
+#undef DEFAULT_SOURCE_URL
34
+#define DEFAULT_SOURCE_URL   "https://github.com/CONSULitAS/Marlin-K8200"

+ 2
- 0
Marlin/pins_RUMBA.h View File

@@ -32,6 +32,8 @@
32 32
   #error RUMBA supports up to 3 extruders. Comment this line to keep going.
33 33
 #endif
34 34
 
35
+#define DEFAULT_MACHINE_NAME "Rumba"
36
+
35 37
 #define X_STEP_PIN         17
36 38
 #define X_DIR_PIN          16
37 39
 #define X_ENABLE_PIN       48

+ 3
- 0
Marlin/pins_SAV_MKI.h View File

@@ -31,6 +31,9 @@
31 31
   #error Oops!  Make sure you have 'Teensy++ 2.0' selected from the 'Tools -> Boards' menu.
32 32
 #endif
33 33
 
34
+#define DEFAULT_MACHINE_NAME "SAV MkI"
35
+#define DEFAULT_SOURCE_URL   "https://github.com/fmalpartida/Marlin/tree/SAV-MkI-config"
36
+
34 37
 #define LARGE_FLASH        true
35 38
 
36 39
 #define X_STEP_PIN         0

+ 3
- 0
Marlin/pins_ULTIMAIN_2.h View File

@@ -28,6 +28,9 @@
28 28
   #error Oops!  Make sure you have 'Arduino Mega 2560' selected from the 'Tools -> Boards' menu.
29 29
 #endif
30 30
 
31
+#define DEFAULT_MACHINE_NAME "Ultimaker"
32
+#define DEFAULT_SOURCE_URL   "https://github.com/Ultimaker/Marlin"
33
+
31 34
 #define X_STEP_PIN 25
32 35
 #define X_DIR_PIN 23
33 36
 #define X_STOP_PIN 22

+ 3
- 0
Marlin/pins_ULTIMAKER.h View File

@@ -28,6 +28,9 @@
28 28
   #error Oops!  Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
29 29
 #endif
30 30
 
31
+#define DEFAULT_MACHINE_NAME "Ultimaker"
32
+#define DEFAULT_SOURCE_URL   "https://github.com/Ultimaker/Marlin"
33
+
31 34
 #define LARGE_FLASH true
32 35
 
33 36
 #define SERVO0_PIN 13 // untested

+ 3
- 0
Marlin/pins_ULTIMAKER_OLD.h View File

@@ -28,6 +28,9 @@
28 28
   #error Oops!  Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
29 29
 #endif
30 30
 
31
+#define DEFAULT_MACHINE_NAME "Ultimaker"
32
+#define DEFAULT_SOURCE_URL   "https://github.com/Ultimaker/Marlin"
33
+
31 34
 #define LARGE_FLASH true
32 35
 
33 36
 #define X_STEP_PIN 25

Loading…
Cancel
Save