Browse Source

Print configuration.h version during startup (thanks hairykiwi)

Erik van der Zalm 12 years ago
parent
commit
154de69c02
2 changed files with 17 additions and 1 deletions
  1. 6
    0
      Marlin/Configuration.h
  2. 11
    1
      Marlin/Marlin.pde

+ 6
- 0
Marlin/Configuration.h View File

@@ -5,6 +5,12 @@
5 5
 // Advanced settings can be found in Configuration_adv.h 
6 6
 // BASIC SETTINGS: select your board type, temperature sensor type, axis scaling, and endstop configuration
7 7
 
8
+//User specified version info of THIS file to display in [Pronterface, etc] terminal window during startup.
9
+//Implementation of an idea by Prof Braino to inform user that any changes made
10
+//to THIS file by the user have been successfully uploaded into firmware.
11
+#define STRING_VERSION_CONFIG_H "2012-02-08j" //Personal revision number for changes to THIS file.
12
+#define STRING_CONFIG_H_AUTHOR "username" //Who made the changes.
13
+
8 14
 // This determines the communication speed of the printer
9 15
 #define BAUDRATE 250000
10 16
 //#define BAUDRATE 115200

+ 11
- 1
Marlin/Marlin.pde View File

@@ -248,9 +248,19 @@ void setup()
248 248
 { 
249 249
   setup_powerhold();
250 250
   SERIAL.begin(BAUDRATE);
251
+  SERIAL_PROTOCOLLNPGM("start");
251 252
   SERIAL_ECHO_START;
253
+  SERIAL_ECHOPGM("Marlin: ");
252 254
   SERIAL_ECHOLNPGM(VERSION_STRING);
253
-  SERIAL_PROTOCOLLNPGM("start");
255
+  #ifdef STRING_VERSION_CONFIG_H
256
+    #ifdef STRING_CONFIG_H_AUTHOR
257
+      SERIAL_ECHO_START;
258
+      SERIAL_ECHOPGM("Configuration.h: ");
259
+      SERIAL_ECHOPGM(STRING_VERSION_CONFIG_H);
260
+      SERIAL_ECHOPGM(" | Author: ");
261
+      SERIAL_ECHOLNPGM(STRING_CONFIG_H_AUTHOR);
262
+    #endif
263
+  #endif
254 264
   SERIAL_ECHO_START;
255 265
   SERIAL_ECHOPGM("Free Memory:");
256 266
   SERIAL_ECHO(freeMemory());

Loading…
Cancel
Save