浏览代码

Print configuration.h version during startup (thanks hairykiwi)

Erik van der Zalm 13 年前
父节点
当前提交
154de69c02
共有 2 个文件被更改,包括 17 次插入1 次删除
  1. 6
    0
      Marlin/Configuration.h
  2. 11
    1
      Marlin/Marlin.pde

+ 6
- 0
Marlin/Configuration.h 查看文件

5
 // Advanced settings can be found in Configuration_adv.h 
5
 // Advanced settings can be found in Configuration_adv.h 
6
 // BASIC SETTINGS: select your board type, temperature sensor type, axis scaling, and endstop configuration
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
 // This determines the communication speed of the printer
14
 // This determines the communication speed of the printer
9
 #define BAUDRATE 250000
15
 #define BAUDRATE 250000
10
 //#define BAUDRATE 115200
16
 //#define BAUDRATE 115200

+ 11
- 1
Marlin/Marlin.pde 查看文件

248
 { 
248
 { 
249
   setup_powerhold();
249
   setup_powerhold();
250
   SERIAL.begin(BAUDRATE);
250
   SERIAL.begin(BAUDRATE);
251
+  SERIAL_PROTOCOLLNPGM("start");
251
   SERIAL_ECHO_START;
252
   SERIAL_ECHO_START;
253
+  SERIAL_ECHOPGM("Marlin: ");
252
   SERIAL_ECHOLNPGM(VERSION_STRING);
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
   SERIAL_ECHO_START;
264
   SERIAL_ECHO_START;
255
   SERIAL_ECHOPGM("Free Memory:");
265
   SERIAL_ECHOPGM("Free Memory:");
256
   SERIAL_ECHO(freeMemory());
266
   SERIAL_ECHO(freeMemory());

正在加载...
取消
保存