Browse Source

Merge pull request #7 from Wackerbarth/DetailedBuildVersion

Provide both long and short version strings
AnHardt 9 years ago
parent
commit
e3acc84b99
26 changed files with 81 additions and 68 deletions
  1. 0
    2
      ArduinoAddons/Arduino_1.5.x/hardware/marlin/avr/platform.local.txt
  2. 1
    1
      ArduinoAddons/Arduino_1.6.x/hardware/marlin/avr/platform.local.txt
  3. 8
    3
      LinuxAddons/bin/generate_version_header_for_marlin
  4. 2
    2
      Marlin/Configuration.h
  5. 4
    3
      Marlin/Default_Version.h
  6. 1
    1
      Marlin/Marlin_main.cpp
  7. 8
    0
      Marlin/SanityCheck.h
  8. 2
    2
      Marlin/configurator/config/Configuration.h
  9. 4
    1
      Marlin/configurator/config/boards.h
  10. 15
    14
      Marlin/configurator/config/language.h
  11. 2
    2
      Marlin/example_configurations/Felix/Configuration.h
  12. 2
    2
      Marlin/example_configurations/Felix/Configuration_DUAL.h
  13. 2
    2
      Marlin/example_configurations/Hephestos/Configuration.h
  14. 2
    2
      Marlin/example_configurations/K8200/Configuration.h
  15. 2
    2
      Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h
  16. 2
    2
      Marlin/example_configurations/RigidBot/Configuration.h
  17. 2
    2
      Marlin/example_configurations/SCARA/Configuration.h
  18. 2
    2
      Marlin/example_configurations/WITBOX/Configuration.h
  19. 2
    2
      Marlin/example_configurations/adafruit/ST7565/Configuration.h
  20. 2
    2
      Marlin/example_configurations/delta/biv2.5/Configuration.h
  21. 2
    2
      Marlin/example_configurations/delta/generic/Configuration.h
  22. 2
    2
      Marlin/example_configurations/delta/kossel_mini/Configuration.h
  23. 2
    2
      Marlin/example_configurations/delta/kossel_pro/Configuration.h
  24. 2
    2
      Marlin/example_configurations/makibox/Configuration.h
  25. 2
    2
      Marlin/example_configurations/tvrrug/Round2/Configuration.h
  26. 6
    9
      Marlin/language.h

+ 0
- 2
ArduinoAddons/Arduino_1.5.x/hardware/marlin/avr/platform.local.txt View File

@@ -1,2 +0,0 @@
1
-compiler.cpp.extra_flags=-DHAS_AUTOMATIC_VERSIONING
2
-recipe.hooks.prebuild.pattern=/usr/local/bin/generate_version_header_for_marlin "{build.source.path}" "{build.path}/_Version.h"

+ 1
- 1
ArduinoAddons/Arduino_1.6.x/hardware/marlin/avr/platform.local.txt View File

@@ -1,4 +1,4 @@
1
-compiler.cpp.extra_flags=-DHAS_AUTOMATIC_VERSIONING
1
+compiler.cpp.extra_flags=-DUSE_AUTOMATIC_VERSIONING
2 2
 build.custom_bin.path.macosx=/usr/local/bin/
3 3
 build.custom_bin.path.linux=
4 4
 recipe.hooks.prebuild0.pattern={build.custom_bin.path}generate_version_header_for_marlin "{build.source.path}" "{build.path}/_Version.h"

+ 8
- 3
LinuxAddons/bin/generate_version_header_for_marlin View File

@@ -21,11 +21,16 @@ echo "#define STRING_DISTRIBUTION_DATE" `date '+"%Y-%m-%d %H:%M"'` >>"$OUTFILE"
21 21
   else
22 22
     BRANCH=" $BRANCH"
23 23
   fi
24
-  VERSION=`git describe --tags --first-parent 2>/dev/null` 
24
+  VERSION=`git describe --tags --first-parent 2>/dev/null`
25 25
   if [ "x$VERSION" != "x" ] ; then
26
-    echo "#define BUILD_VERSION \"$VERSION\"" | sed "s/-/$BRANCH-/" >>"$OUTFILE"
26
+    echo "#define SHORT_BUILD_VERSION \"$VERSION\"" | sed "s/-.*/$BRANCH\"/" >>"$OUTFILE"
27
+    echo "#define DETAILED_BUILD_VERSION \"$VERSION\"" | sed "s/-/$BRANCH-/" >>"$OUTFILE"
28
+  else
29
+    VERSION=`git describe --tags --first-parent --always 2>/dev/null`
30
+    echo "#define SHORT_BUILD_VERSION \"$BRANCH\"" >>"$OUTFILE"
31
+    echo "#define DETAILED_BUILD_VERSION \"${BRANCH}-$VERSION\"" >>"$OUTFILE"
27 32
   fi
28
-  URL=`git config --local --get remote.origin.url | sed "sx.*github.com:xhttps://github.com/x" | sed "sx\.gitx/x"`
33
+  URL=`git config --local --get remote.origin.url | sed "sx.*github.com.xhttps://github.com/x" | sed "sx\.gitx/x"`
29 34
   if [ "x$URL" != "x" ] ; then
30 35
     echo "#define SOURCE_CODE_URL  \""$URL"\"" >>"$OUTFILE"
31 36
     echo "// Deprecated URL definition" >>"$OUTFILE"

+ 2
- 2
Marlin/Configuration.h View File

@@ -38,7 +38,7 @@ Here are some standard links for getting your machine calibrated:
38 38
 
39 39
 // @section info
40 40
 
41
-#if ENABLED(HAS_AUTOMATIC_VERSIONING)
41
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
42 42
   #include "_Version.h"
43 43
 #else
44 44
   #include "Default_Version.h"
@@ -49,7 +49,7 @@ Here are some standard links for getting your machine calibrated:
49 49
 // build by the user have been successfully uploaded into firmware.
50 50
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
51 51
 #define SHOW_BOOTSCREEN
52
-#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
52
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
53 53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
54 54
 
55 55
 // @section machine

+ 4
- 3
Marlin/Default_Version.h View File

@@ -3,11 +3,12 @@
3 3
  * It takes the place of an automatically created "_Version.h" which is generated during the build process
4 4
  */
5 5
 
6
-// #error "You must specify the following parameter related to your distribution"
6
+// #error "You must specify the following parameters related to your distribution"
7 7
 
8 8
 #if true
9
-  #define BUILD_VERSION "1.0.3 dev"
10
-  #define STRING_DISTRIBUTION_DATE "2015-06-00 12:00"
9
+  #define SHORT_BUILD_VERSION "1.1.0 dev"
10
+  #define DETAILED_BUILD_VERSION "1.1.0 Development From Archive"
11
+  #define STRING_DISTRIBUTION_DATE "2015-08-00 12:00"
11 12
   // It might also be appropriate to define a location where additional information can be found
12 13
   #define SOURCE_CODE_URL  "http:// ..."
13 14
 #endif

+ 1
- 1
Marlin/Marlin_main.cpp View File

@@ -638,7 +638,7 @@ void setup() {
638 638
   MCUSR = 0;
639 639
 
640 640
   SERIAL_ECHOPGM(MSG_MARLIN);
641
-  SERIAL_ECHOLNPGM(" " BUILD_VERSION);
641
+  SERIAL_ECHOLNPGM(" " SHORT_BUILD_VERSION);
642 642
 
643 643
   #ifdef STRING_DISTRIBUTION_DATE
644 644
     #ifdef STRING_CONFIG_H_AUTHOR

+ 8
- 0
Marlin/SanityCheck.h View File

@@ -378,4 +378,12 @@
378 378
     #error BTENABLED has been replaced with BLUETOOTH. Please update your configuration.
379 379
   #endif
380 380
 
381
+  #ifdef CUSTOM_MENDEL_NAME
382
+    #error CUSTOM_MENDEL_NAME deprecated - use CUSTOM_MACHINE_NAME instead
383
+  #endif
384
+
385
+  #ifdef HAS_AUTOMATIC_VERSIONING
386
+    #error HAS_AUTOMATIC_VERSIONING deprecated - use USE_AUTOMATIC_VERSIONING instead
387
+  #endif
388
+
381 389
 #endif //SANITYCHECK_H

+ 2
- 2
Marlin/configurator/config/Configuration.h View File

@@ -38,7 +38,7 @@ Here are some standard links for getting your machine calibrated:
38 38
 
39 39
 // @section info
40 40
 
41
-#if ENABLED(HAS_AUTOMATIC_VERSIONING)
41
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
42 42
   #include "_Version.h"
43 43
 #else
44 44
   #include "Default_Version.h"
@@ -49,7 +49,7 @@ Here are some standard links for getting your machine calibrated:
49 49
 // build by the user have been successfully uploaded into firmware.
50 50
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
51 51
 #define SHOW_BOOTSCREEN
52
-#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
52
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
53 53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
54 54
 
55 55
 // @section machine

+ 4
- 1
Marlin/configurator/config/boards.h View File

@@ -16,6 +16,7 @@
16 16
 #define BOARD_RAMPS_13_EEF      36   // RAMPS 1.3 / 1.4 (Power outputs: Extruder0, Extruder1, Fan)
17 17
 #define BOARD_RAMPS_13_SF       38   // RAMPS 1.3 / 1.4 (Power outputs: Spindle, Controller Fan)
18 18
 #define BOARD_FELIX2            37   // Felix 2.0+ Electronics Board (RAMPS like)
19
+#define BOARD_RIGIDBOARD        42   // Invent-A-Part RigidBoard
19 20
 #define BOARD_GEN6              5    // Gen6
20 21
 #define BOARD_GEN6_DELUXE       51   // Gen6 deluxe
21 22
 #define BOARD_SANGUINOLOLU_11   6    // Sanguinololu < 1.2
@@ -42,11 +43,13 @@
42 43
 #define BOARD_GEN3_MONOLITHIC   22   // Gen3 Monolithic Electronics
43 44
 #define BOARD_MEGATRONICS       70   // Megatronics
44 45
 #define BOARD_MEGATRONICS_2     701  // Megatronics v2.0
45
-#define BOARD_MEGATRONICS_1     702  // Minitronics v1.0
46
+#define BOARD_MINITRONICS       702  // Minitronics v1.0/1.1
46 47
 #define BOARD_MEGATRONICS_3     703  // Megatronics v3.0
47 48
 #define BOARD_OMCA_A            90   // Alpha OMCA board
48 49
 #define BOARD_OMCA              91   // Final OMCA board
49 50
 #define BOARD_RAMBO             301  // Rambo
51
+#define BOARD_MINIRAMBO         302  // Mini-Rambo
52
+#define BOARD_MEGACONTROLLER    310  // Mega controller
50 53
 #define BOARD_ELEFU_3           21   // Elefu Ra Board (v3)
51 54
 #define BOARD_5DPRINT           88   // 5DPrint D8 Driver Board
52 55
 #define BOARD_LEAPFROG          999  // Leapfrog

+ 15
- 14
Marlin/configurator/config/language.h View File

@@ -20,6 +20,7 @@
20 20
 // de       German
21 21
 // es       Spanish
22 22
 // ru       Russian
23
+// bg       Bulgarian
23 24
 // it       Italian
24 25
 // pt       Portuguese
25 26
 // pt-br    Portuguese (Brazil)
@@ -37,15 +38,17 @@
37 38
   #define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
38 39
 #endif
39 40
 
40
-#if ENABLED(HAS_AUTOMATIC_VERSIONING)
41
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
41 42
   #include "_Version.h"
43
+#else
44
+  #include "Default_Version.h"
42 45
 #endif
43 46
 
44 47
 #define PROTOCOL_VERSION "1.0"
45 48
 
46 49
 #if MB(ULTIMAKER)|| MB(ULTIMAKER_OLD)|| MB(ULTIMAIN_2)
47 50
   #define MACHINE_NAME "Ultimaker"
48
-  #define SOURCE_CODE_URL "http://firmware.ultimaker.com"
51
+  #define SOURCE_CODE_URL "https://github.com/Ultimaker/Marlin"
49 52
 #elif MB(RUMBA)
50 53
   #define MACHINE_NAME "Rumba"
51 54
 #elif MB(3DRAG)
@@ -63,11 +66,6 @@
63 66
   #define MACHINE_NAME "3D Printer"
64 67
 #endif
65 68
 
66
-#ifdef CUSTOM_MENDEL_NAME
67
-  #error CUSTOM_MENDEL_NAME deprecated - use CUSTOM_MACHINE_NAME
68
-  #define CUSTOM_MACHINE_NAME CUSTOM_MENDEL_NAME
69
-#endif
70
-
71 69
 #ifdef CUSTOM_MACHINE_NAME
72 70
   #undef MACHINE_NAME
73 71
   #define MACHINE_NAME CUSTOM_MACHINE_NAME
@@ -77,8 +75,8 @@
77 75
   #define SOURCE_CODE_URL "https://github.com/MarlinFirmware/Marlin"
78 76
 #endif
79 77
 
80
-#ifndef BUILD_VERSION
81
-  #define BUILD_VERSION "V1; Sprinter/grbl mashup for gen6"
78
+#ifndef DETAILED_BUILD_VERSION
79
+  #error BUILD_VERSION Information must be specified
82 80
 #endif
83 81
 
84 82
 #ifndef MACHINE_UUID
@@ -122,11 +120,7 @@
122 120
 #define MSG_INVALID_EXTRUDER                "Invalid extruder"
123 121
 #define MSG_INVALID_SOLENOID                "Invalid solenoid"
124 122
 #define MSG_ERR_NO_THERMISTORS              "No thermistors - no temperature"
125
-#define MSG_HEATING                         "Heating..."
126
-#define MSG_HEATING_COMPLETE                "Heating done."
127
-#define MSG_BED_HEATING                     "Bed Heating."
128
-#define MSG_BED_DONE                        "Bed done."
129
-#define MSG_M115_REPORT                     "FIRMWARE_NAME:Marlin " BUILD_VERSION " SOURCE_CODE_URL:" SOURCE_CODE_URL " PROTOCOL_VERSION:" PROTOCOL_VERSION " MACHINE_TYPE:" MACHINE_NAME " EXTRUDER_COUNT:" STRINGIFY(EXTRUDERS) " UUID:" MACHINE_UUID "\n"
123
+#define MSG_M115_REPORT                     "FIRMWARE_NAME:Marlin " DETAILED_BUILD_VERSION " SOURCE_CODE_URL:" SOURCE_CODE_URL " PROTOCOL_VERSION:" PROTOCOL_VERSION " MACHINE_TYPE:" MACHINE_NAME " EXTRUDER_COUNT:" STRINGIFY(EXTRUDERS) " UUID:" MACHINE_UUID "\n"
130 124
 #define MSG_COUNT_X                         " Count X: "
131 125
 #define MSG_ERR_KILLED                      "Printer halted. kill() called!"
132 126
 #define MSG_ERR_STOPPED                     "Printer stopped due to errors. Fix the error and use M999 to restart. (Temperature is reset. Set it after restarting)"
@@ -195,6 +189,8 @@
195 189
 #define MSG_KP                              " Kp: "
196 190
 #define MSG_KI                              " Ki: "
197 191
 #define MSG_KD                              " Kd: "
192
+#define MSG_B                               "B:"
193
+#define MSG_T                               "T:"
198 194
 #define MSG_AT                              " @:"
199 195
 #define MSG_PID_AUTOTUNE_FINISHED           MSG_PID_AUTOTUNE " finished! Put the last Kp, Ki and Kd constants from below into Configuration.h"
200 196
 #define MSG_PID_DEBUG                       " PID_DEBUG "
@@ -213,6 +209,11 @@
213 209
 #define MSG_T_MAXTEMP                       "MAXTEMP triggered"
214 210
 #define MSG_T_MINTEMP                       "MINTEMP triggered"
215 211
 
212
+// Debug
213
+#define MSG_DEBUG_ECHO                      "DEBUG ECHO ENABLED"
214
+#define MSG_DEBUG_INFO                      "DEBUG INFO ENABLED"
215
+#define MSG_DEBUG_ERRORS                    "DEBUG ERRORS ENABLED"
216
+#define MSG_DEBUG_DRYRUN                    "DEBUG DRYRUN ENABLED"
216 217
 
217 218
 // LCD Menu Messages
218 219
 

+ 2
- 2
Marlin/example_configurations/Felix/Configuration.h View File

@@ -38,7 +38,7 @@ Here are some standard links for getting your machine calibrated:
38 38
 
39 39
 // @section info
40 40
 
41
-#if ENABLED(HAS_AUTOMATIC_VERSIONING)
41
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
42 42
   #include "_Version.h"
43 43
 #else
44 44
   #include "Default_Version.h"
@@ -49,7 +49,7 @@ Here are some standard links for getting your machine calibrated:
49 49
 // build by the user have been successfully uploaded into firmware.
50 50
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
51 51
 #define SHOW_BOOTSCREEN
52
-#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
52
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
53 53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
54 54
 
55 55
 // @section machine

+ 2
- 2
Marlin/example_configurations/Felix/Configuration_DUAL.h View File

@@ -38,7 +38,7 @@ Here are some standard links for getting your machine calibrated:
38 38
 
39 39
 // @section info
40 40
 
41
-#if ENABLED(HAS_AUTOMATIC_VERSIONING)
41
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
42 42
   #include "_Version.h"
43 43
 #else
44 44
   #include "Default_Version.h"
@@ -49,7 +49,7 @@ Here are some standard links for getting your machine calibrated:
49 49
 // build by the user have been successfully uploaded into firmware.
50 50
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
51 51
 #define SHOW_BOOTSCREEN
52
-#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
52
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
53 53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
54 54
 
55 55
 // @section machine

+ 2
- 2
Marlin/example_configurations/Hephestos/Configuration.h View File

@@ -38,7 +38,7 @@ Here are some standard links for getting your machine calibrated:
38 38
 
39 39
 // @section info
40 40
 
41
-#if ENABLED(HAS_AUTOMATIC_VERSIONING)
41
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
42 42
   #include "_Version.h"
43 43
 #else
44 44
   #include "Default_Version.h"
@@ -49,7 +49,7 @@ Here are some standard links for getting your machine calibrated:
49 49
 // build by the user have been successfully uploaded into firmware.
50 50
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
51 51
 #define SHOW_BOOTSCREEN
52
-#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
52
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
53 53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
54 54
 
55 55
 // @section machine

+ 2
- 2
Marlin/example_configurations/K8200/Configuration.h View File

@@ -43,7 +43,7 @@ Here are some standard links for getting your machine calibrated:
43 43
 
44 44
 // @section info
45 45
 
46
-#if ENABLED(HAS_AUTOMATIC_VERSIONING)
46
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
47 47
   #include "_Version.h"
48 48
 #else
49 49
   #include "Default_Version.h"
@@ -54,7 +54,7 @@ Here are some standard links for getting your machine calibrated:
54 54
 // build by the user have been successfully uploaded into firmware.
55 55
 #define STRING_CONFIG_H_AUTHOR "(K8200, CONSULitAS)" // Who made the changes.
56 56
 #define SHOW_BOOTSCREEN
57
-#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
57
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
58 58
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
59 59
 
60 60
 // @section machine

+ 2
- 2
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h View File

@@ -38,7 +38,7 @@ Here are some standard links for getting your machine calibrated:
38 38
 
39 39
 // @section info
40 40
 
41
-#if ENABLED(HAS_AUTOMATIC_VERSIONING)
41
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
42 42
   #include "_Version.h"
43 43
 #else
44 44
   #include "Default_Version.h"
@@ -49,7 +49,7 @@ Here are some standard links for getting your machine calibrated:
49 49
 // build by the user have been successfully uploaded into firmware.
50 50
 #define STRING_CONFIG_H_AUTHOR "RepRapWorld.com" // Who made the changes.
51 51
 #define SHOW_BOOTSCREEN
52
-#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
52
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
53 53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
54 54
 
55 55
 // @section machine

+ 2
- 2
Marlin/example_configurations/RigidBot/Configuration.h View File

@@ -38,7 +38,7 @@ Here are some standard links for getting your machine calibrated:
38 38
 
39 39
 // @section info
40 40
 
41
-#if ENABLED(HAS_AUTOMATIC_VERSIONING)
41
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
42 42
   #include "_Version.h"
43 43
 #else
44 44
   #include "Default_Version.h"
@@ -49,7 +49,7 @@ Here are some standard links for getting your machine calibrated:
49 49
 // build by the user have been successfully uploaded into firmware.
50 50
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
51 51
 #define SHOW_BOOTSCREEN
52
-#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
52
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
53 53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
54 54
 
55 55
 // @section machine

+ 2
- 2
Marlin/example_configurations/SCARA/Configuration.h View File

@@ -63,7 +63,7 @@ Here are some standard links for getting your machine calibrated:
63 63
 
64 64
 // @section info
65 65
 
66
-#if ENABLED(HAS_AUTOMATIC_VERSIONING)
66
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
67 67
   #include "_Version.h"
68 68
 #else
69 69
   #include "Default_Version.h"
@@ -74,7 +74,7 @@ Here are some standard links for getting your machine calibrated:
74 74
 // build by the user have been successfully uploaded into firmware.
75 75
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
76 76
 #define SHOW_BOOTSCREEN
77
-#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
77
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
78 78
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
79 79
 
80 80
 // @section machine

+ 2
- 2
Marlin/example_configurations/WITBOX/Configuration.h View File

@@ -38,7 +38,7 @@ Here are some standard links for getting your machine calibrated:
38 38
 
39 39
 // @section info
40 40
 
41
-#if ENABLED(HAS_AUTOMATIC_VERSIONING)
41
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
42 42
   #include "_Version.h"
43 43
 #else
44 44
   #include "Default_Version.h"
@@ -49,7 +49,7 @@ Here are some standard links for getting your machine calibrated:
49 49
 // build by the user have been successfully uploaded into firmware.
50 50
 #define STRING_CONFIG_H_AUTHOR "(bq Witbox)" // Who made the changes.
51 51
 #define SHOW_BOOTSCREEN
52
-#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
52
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
53 53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
54 54
 
55 55
 // @section machine

+ 2
- 2
Marlin/example_configurations/adafruit/ST7565/Configuration.h View File

@@ -38,7 +38,7 @@ Here are some standard links for getting your machine calibrated:
38 38
 
39 39
 // @section info
40 40
 
41
-#if ENABLED(HAS_AUTOMATIC_VERSIONING)
41
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
42 42
   #include "_Version.h"
43 43
 #else
44 44
   #include "Default_Version.h"
@@ -49,7 +49,7 @@ Here are some standard links for getting your machine calibrated:
49 49
 // build by the user have been successfully uploaded into firmware.
50 50
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
51 51
 #define SHOW_BOOTSCREEN
52
-#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
52
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
53 53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
54 54
 
55 55
 // @section machine

+ 2
- 2
Marlin/example_configurations/delta/biv2.5/Configuration.h View File

@@ -38,7 +38,7 @@ Here are some standard links for getting your machine calibrated:
38 38
 
39 39
 // @section info
40 40
 
41
-#if ENABLED(HAS_AUTOMATIC_VERSIONING)
41
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
42 42
   #include "_Version.h"
43 43
 #else
44 44
   #include "Default_Version.h"
@@ -49,7 +49,7 @@ Here are some standard links for getting your machine calibrated:
49 49
 // build by the user have been successfully uploaded into firmware.
50 50
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
51 51
 #define SHOW_BOOTSCREEN
52
-#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
52
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
53 53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
54 54
 
55 55
 // @section machine

+ 2
- 2
Marlin/example_configurations/delta/generic/Configuration.h View File

@@ -38,7 +38,7 @@ Here are some standard links for getting your machine calibrated:
38 38
 
39 39
 // @section info
40 40
 
41
-#if ENABLED(HAS_AUTOMATIC_VERSIONING)
41
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
42 42
   #include "_Version.h"
43 43
 #else
44 44
   #include "Default_Version.h"
@@ -49,7 +49,7 @@ Here are some standard links for getting your machine calibrated:
49 49
 // build by the user have been successfully uploaded into firmware.
50 50
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
51 51
 #define SHOW_BOOTSCREEN
52
-#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
52
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
53 53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
54 54
 
55 55
 // @section machine

+ 2
- 2
Marlin/example_configurations/delta/kossel_mini/Configuration.h View File

@@ -38,7 +38,7 @@ Here are some standard links for getting your machine calibrated:
38 38
 
39 39
 // @section info
40 40
 
41
-#if ENABLED(HAS_AUTOMATIC_VERSIONING)
41
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
42 42
   #include "_Version.h"
43 43
 #else
44 44
   #include "Default_Version.h"
@@ -49,7 +49,7 @@ Here are some standard links for getting your machine calibrated:
49 49
 // build by the user have been successfully uploaded into firmware.
50 50
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
51 51
 #define SHOW_BOOTSCREEN
52
-#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
52
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
53 53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
54 54
 
55 55
 // @section machine

+ 2
- 2
Marlin/example_configurations/delta/kossel_pro/Configuration.h View File

@@ -42,7 +42,7 @@ Here are some standard links for getting your machine calibrated:
42 42
 
43 43
 // @section info
44 44
 
45
-#if ENABLED(HAS_AUTOMATIC_VERSIONING)
45
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
46 46
   #include "_Version.h"
47 47
 #else
48 48
   #include "Default_Version.h"
@@ -53,7 +53,7 @@ Here are some standard links for getting your machine calibrated:
53 53
 // build by the user have been successfully uploaded into firmware.
54 54
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
55 55
 #define SHOW_BOOTSCREEN
56
-#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
56
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
57 57
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
58 58
 
59 59
 // @section machine

+ 2
- 2
Marlin/example_configurations/makibox/Configuration.h View File

@@ -38,7 +38,7 @@ Here are some standard links for getting your machine calibrated:
38 38
 
39 39
 // @section info
40 40
 
41
-#if ENABLED(HAS_AUTOMATIC_VERSIONING)
41
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
42 42
   #include "_Version.h"
43 43
 #else
44 44
   #include "Default_Version.h"
@@ -49,7 +49,7 @@ Here are some standard links for getting your machine calibrated:
49 49
 // build by the user have been successfully uploaded into firmware.
50 50
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
51 51
 #define SHOW_BOOTSCREEN
52
-#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
52
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
53 53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
54 54
 
55 55
 // @section machine

+ 2
- 2
Marlin/example_configurations/tvrrug/Round2/Configuration.h View File

@@ -38,7 +38,7 @@ Here are some standard links for getting your machine calibrated:
38 38
 
39 39
 // @section info
40 40
 
41
-#if ENABLED(HAS_AUTOMATIC_VERSIONING)
41
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
42 42
   #include "_Version.h"
43 43
 #else
44 44
   #include "Default_Version.h"
@@ -49,7 +49,7 @@ Here are some standard links for getting your machine calibrated:
49 49
 // build by the user have been successfully uploaded into firmware.
50 50
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
51 51
 #define SHOW_BOOTSCREEN
52
-#define STRING_SPLASH_LINE1 BUILD_VERSION // will be shown during bootup in line 1
52
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
53 53
 //#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
54 54
 
55 55
 // @section machine

+ 6
- 9
Marlin/language.h View File

@@ -38,8 +38,10 @@
38 38
   #define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(en)
39 39
 #endif
40 40
 
41
-#if ENABLED(HAS_AUTOMATIC_VERSIONING)
41
+#if ENABLED(USE_AUTOMATIC_VERSIONING)
42 42
   #include "_Version.h"
43
+#else
44
+  #include "Default_Version.h"
43 45
 #endif
44 46
 
45 47
 #define PROTOCOL_VERSION "1.0"
@@ -64,11 +66,6 @@
64 66
   #define MACHINE_NAME "3D Printer"
65 67
 #endif
66 68
 
67
-#ifdef CUSTOM_MENDEL_NAME
68
-  #error CUSTOM_MENDEL_NAME deprecated - use CUSTOM_MACHINE_NAME
69
-  #define CUSTOM_MACHINE_NAME CUSTOM_MENDEL_NAME
70
-#endif
71
-
72 69
 #ifdef CUSTOM_MACHINE_NAME
73 70
   #undef MACHINE_NAME
74 71
   #define MACHINE_NAME CUSTOM_MACHINE_NAME
@@ -78,8 +75,8 @@
78 75
   #define SOURCE_CODE_URL "https://github.com/MarlinFirmware/Marlin"
79 76
 #endif
80 77
 
81
-#ifndef BUILD_VERSION
82
-  #define BUILD_VERSION "V1; Sprinter/grbl mashup for gen6"
78
+#ifndef DETAILED_BUILD_VERSION
79
+  #error BUILD_VERSION Information must be specified
83 80
 #endif
84 81
 
85 82
 #ifndef MACHINE_UUID
@@ -123,7 +120,7 @@
123 120
 #define MSG_INVALID_EXTRUDER                "Invalid extruder"
124 121
 #define MSG_INVALID_SOLENOID                "Invalid solenoid"
125 122
 #define MSG_ERR_NO_THERMISTORS              "No thermistors - no temperature"
126
-#define MSG_M115_REPORT                     "FIRMWARE_NAME:Marlin " BUILD_VERSION " SOURCE_CODE_URL:" SOURCE_CODE_URL " PROTOCOL_VERSION:" PROTOCOL_VERSION " MACHINE_TYPE:" MACHINE_NAME " EXTRUDER_COUNT:" STRINGIFY(EXTRUDERS) " UUID:" MACHINE_UUID "\n"
123
+#define MSG_M115_REPORT                     "FIRMWARE_NAME:Marlin " DETAILED_BUILD_VERSION " SOURCE_CODE_URL:" SOURCE_CODE_URL " PROTOCOL_VERSION:" PROTOCOL_VERSION " MACHINE_TYPE:" MACHINE_NAME " EXTRUDER_COUNT:" STRINGIFY(EXTRUDERS) " UUID:" MACHINE_UUID "\n"
127 124
 #define MSG_COUNT_X                         " Count X: "
128 125
 #define MSG_ERR_KILLED                      "Printer halted. kill() called!"
129 126
 #define MSG_ERR_STOPPED                     "Printer stopped due to errors. Fix the error and use M999 to restart. (Temperature is reset. Set it after restarting)"

Loading…
Cancel
Save