chiark / gitweb /
Print configuration.h version during startup (thanks hairykiwi)
authorErik van der Zalm <erik@vdzalm.eu>
Thu, 9 Feb 2012 19:26:17 +0000 (20:26 +0100)
committerErik van der Zalm <erik@vdzalm.eu>
Thu, 9 Feb 2012 19:26:17 +0000 (20:26 +0100)
Marlin/Configuration.h
Marlin/Marlin.pde

index 9e14a47fc3087f63ecc9792fc6d29020b86accb2..7288e8fb56ccfd36449d72498cf2eb32fd71af73 100644 (file)
@@ -5,6 +5,12 @@
 // Advanced settings can be found in Configuration_adv.h 
 // BASIC SETTINGS: select your board type, temperature sensor type, axis scaling, and endstop configuration
 
+//User specified version info of THIS file to display in [Pronterface, etc] terminal window during startup.
+//Implementation of an idea by Prof Braino to inform user that any changes made
+//to THIS file by the user have been successfully uploaded into firmware.
+#define STRING_VERSION_CONFIG_H "2012-02-08j" //Personal revision number for changes to THIS file.
+#define STRING_CONFIG_H_AUTHOR "username" //Who made the changes.
+
 // This determines the communication speed of the printer
 #define BAUDRATE 250000
 //#define BAUDRATE 115200
index dcd600468d6c8cf4f3a123e49529ad8156823772..5b4bce9b411a4f56ce2ab7a01eed5739f7aa357b 100644 (file)
@@ -248,9 +248,19 @@ void setup()
 { 
   setup_powerhold();
   SERIAL.begin(BAUDRATE);
+  SERIAL_PROTOCOLLNPGM("start");
   SERIAL_ECHO_START;
+  SERIAL_ECHOPGM("Marlin: ");
   SERIAL_ECHOLNPGM(VERSION_STRING);
-  SERIAL_PROTOCOLLNPGM("start");
+  #ifdef STRING_VERSION_CONFIG_H
+    #ifdef STRING_CONFIG_H_AUTHOR
+      SERIAL_ECHO_START;
+      SERIAL_ECHOPGM("Configuration.h: ");
+      SERIAL_ECHOPGM(STRING_VERSION_CONFIG_H);
+      SERIAL_ECHOPGM(" | Author: ");
+      SERIAL_ECHOLNPGM(STRING_CONFIG_H_AUTHOR);
+    #endif
+  #endif
   SERIAL_ECHO_START;
   SERIAL_ECHOPGM("Free Memory:");
   SERIAL_ECHO(freeMemory());